html5 - MP4 files playing failed with php -


i developing html5 video. seems when try embed video direct url, video can played successfully. however, when tried use php content url in video/mp4 content, cannot played. how can make sure can make video being played though use php? (the video played php if set content type application/octet-stream , content disposition attachment)please not teach me method of fopen since need encrypt mp4 source content must in string format.

$zipc="decrypted_string"; header("content-type: video/mp4"); header("http/1.1 206 partial content"); header('accept-ranges: bytes'); header('content-length:'.(strlen($zipc))); header("content-range: bytes 0-".(strlen($zipc)-1)."/".strlen($zipc)); echo $zipc;} 

just add php function ob_end_clean() , things work.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -