Topic: how can I add a video stream to a web page
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 "
<object width='425' height='353'><param name='video' value='/vision.mpeg1/$code$you_auto'></param>
<param name='wmode' value='transparent'></param>
<embed src='/home/larry/Public/Videos/vision.mp4'/$code$you_auto' type='application/x-mplayer' wmode='transparent' width='425' height='353'>
</embed></object><br/>";
}
//clean up varibles
$raw = null;
$code = null;
$host = null;
}
}
?>
