Ok基本上我有一个项目,要求视频隐藏的用户,同时仍然能够看到他们(通过使用PHP)。这里是我到目前为止:
video.php文件有这样:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'path/to/movie.mp4');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$out = curl_exec($ch);
curl_close($ch);
header('Content-type: video/mp4');
header('Content-type: video/mpeg');
header('Content-disposition: inline');
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($out));
echo $out;
exit();
?>
和应该显示这个的html文件使用html5,因为它会预期。现在这里的东西..当我直接嵌入这(不是)它的工作原理。但它不工作在我的iPhone和不工作的标签…如果我使用直接文件而不是php包装,一切工作正常,在我的iPhone太…
所以我想我的问题是这一点是:什么是正确的header()信息,以完美地复制一个mp4,可以通过iPhone和HMTL5流?
video.p