1
我想通過PHP流mp4視頻。我的應用程序從它存儲在塊中的位置加載視頻並提供相應的部分。使用這些標題:PHP視頻流到iPad
header("Content-Type: $contenttype");
header("Content-Length: $filesize");
header('Accept-Ranges: bytes');
它也可以在使用以下附加頭和outputing正確的字節請求服務的部分內容:
header('HTTP/1.1 206 Partial Content');
header("Content-Range: bytes $start-$end/$filesize");
流在Chrome中,並通過VLC的偉大工程,但將無法正常工作在iPad上。測試mp4文件被確認在ipad上工作。
有人有這個運氣嗎?任何建議將不勝感激!
退房在http://stackoverflow.com/questions/5924061/using-php-to-output-an-mp4-video腳本,你有什麼照顧在http://stackoverflow.com/questions/24042894/php-ipad-does-not-play-mp4-videos-delivered-by-php-but-if-accessed-directly-it – 2014-06-07 15:32:34