Apache mod_xsendfile + mod_h264(伪流)

时间:2014-04-11 16:04:23

标签: php apache video streaming

在我的服务器上(Apache)我有几个视频(mp4),我使用Flash应用程序Flowplayer在网站上播放。对于伪流模块我使用h264,但是为了隐藏直接链接到mp4文件(视频仅供注册用户使用)使用x-sendfile模块。该解决方案通常可以正常工作,但在胶片还没有被缓存的地方,不能完全选择卷轴胶片前进。

将电影发送到浏览器的电影确定是什么参数?开始= XXX(xxx - 第二个,从中播放电影),方法 - GET。

链接,其中pseodo流式传输工作:

http://page.com/m/movie.mp4

链接,其中伪流不起作用:

http://page.com/movies/1(RewriteRule)

我的PHP代码:

<? 

$filepath = 'm/movie.mp4'; 

header('X-Sendfile: $filepath"); 

header('Content-type: video/mp4"); 

header("Accept-Ranges: bytes"); 

header('Content-Length: ". filesize ($filepath)); 

header('Content-Disposition: attachment; filename = "file.mp4"'); 

//header('Content-Disposition: attachment; filename = "file.mp4?start=6000"'); 

?> 

我不知道如何将适当的参数传递给mod_h264。请帮助解决这个问题。

0 个答案:

没有答案