Jump to content

how can I add a video stream to a web page


lavro

Recommended Posts

Hi I'm trying to embed a video using php. I know there are other ways but I want to use PHP. I'm using Ubuntu Linux. I have the index and class files but my embed code doesn't work. Can anyone help? Does the videos have to be listed in MYSQL? I'm not a programmer. Thanks

 

<?php

 

class video_embed{

var $raw;

var $code;

var $host = "";

var $error = false;

 

function embed($raw)

{

 

 

echo "


";

}

//clean up varibles

$raw = null;

$code = null;

$host = null;

}

}

 

?>

Link to comment
Share on other sites

I modified it somewhat so it would load but it still doesn't show on the web page. Any ideas?

 

<?php

 

class video_embed {

var $raw;

var $code;

var $host = "";

var $error = false;

var $you_auto;

 

function embed($raw)

{

 

 

 

 

echo "

 

embed type='application/x-vlc-plugin'

 

name='video1' $you_auto width='400' height='300'

 

src='/home/larry/Public/Videos/vision.mpeg1'
";

 

}

 

 

}

 

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...