澳门银河网上官方赌场_老品牌值得信赖

ITKeyword,专注技术干货聚合推荐

注册 | 登录

Flowplayer Secure Streaming (via PHP): MP4 videos not Pseudo-Streaming (FLVs do)

itPublisher 分享于

2021腾讯云限时秒杀,爆款1核2G云服务器298元/3年!(领取2860元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1062

2021阿里云最低价产品入口+领取代金券(老用户3折起),
入口地址https://www.aliyun.com/minisite/goods

I've ran into a problem with MP4 secure pseudo streaming.

First of all, a couple of FACTS for you to get the idea:

  • I'm using Flowplayer
  • I have mod_h264_streaming installed and working.
  • I have successfully added secure streaming plugin (PHP validation) and it's working with pseudo for FLV videos (thanks to mod_h264_streamin, of course).
  • I'm testing with an MP4 with the moov-atom at the beginning (and the video starts immediately. No pseudo, though).

Now... when flowplayer loads an MP4, the player makes a request like this:

http://mydomain.com/videos/fa3...[security_hash]...46/video.mp4?start=0

Note the ?start=0

When I seek to another part of the video (not yet loaded), the player makes this request:

http://mydomain.com/videos/fa3...[security_hash]...46/video.mp4?start=33.342

Note the ?start=33.342

This results in the video starting again from the beginning, which is the problem.

ADDITIONAL FACT: for MP4 files start is sent (to the PHP script) as the seconds of the timeline where you click on, and for FLVs start is sent as the seek position in Bytes and I think this difference is the main reason of the issue.

My question is:

How do I handle, in my PHP pseudo streaming script, MP4 videos streaming?

Auto-question: Should I use byte ranges headers?

I'm not posting code, as it's not a coding problem, but a conceptual one: let's focus on the idea by now. Also, all files I'm testing with are well encoded and they are not the problem.

Thanks

streaming mp4 flowplayer pseudo-streaming
edited Apr 14 '13 at 2:25 asked Apr 14 '13 at 0:48 Dandy 135 3 12

 | 

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。

澳门银河网上官方赌场