PHP return a mp4 video file -


i have following php script

$file_name = 'videos/'.$_get['filename'].'.mp4';  $file_size = (string)(filesize($file_name)); header('content-type: video/mp4'); header('accept-ranges: bytes'); header('content-length: '.$file_size);    header("content-disposition: inline;"); header("content-range: bytes .$file_size"); header("content-transfer-encoding: binary\n"); header('connection: close');  readfile($file_name); 

interestingly works serving video files not others recorded different bit-rate. furthermore, if video-files access directly chrome browser display video without problem. missing header?

actually found out problem appache server. had increase memory in php.ini not problem bitrates size of files.

memory_limit=1280m


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -