shocker-z Posted November 13, 2007 Share Posted November 13, 2007 Is there a special header for streaming a file? <?php include('connect.php'); $pathroot = "/home/liam/dsr-video/image/HOME/Cars/"; $ID=mysql_real_escape_string($_GET['ID']); $getpath=mysql_query("SELECT file,folder FROM videos WHERE ID = '".$ID."'"); $path=mysql_fetch_array($getpath); $fullfilepath=$pathroot.$path['folder'].'/'.$path['file']; //$len=filesize($fullfilepath); header('Content-type: video/x-msvideo'); //header('Content-Length: '.$len.''); header('Content-Disposition: attachment; filename="'.$path['file'].'"'); readfile($fullfilepath); ?> I'm calling this page from an embedded WMP. Regards Liam Link to comment https://forums.phpfreaks.com/topic/77153-streaming-video-mpeg4-header/ Share on other sites More sharing options...
ToonMariner Posted November 13, 2007 Share Posted November 13, 2007 perhaps consider using a flash player and converting teh file to an flv on upload.... you'll need ffmpeg to do such things so if you don't have permissions to install it on your server forget that bit. Link to comment https://forums.phpfreaks.com/topic/77153-streaming-video-mpeg4-header/#findComment-390675 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.