CloudFront MP4 渐进式下载
我正在尝试设置从 aws cloudfront 渐进式下载 mp4 文件以支持苹果移动设备。
我在文件开头创建了带有 moovatom 的 mp4。我正在使用 flowplayer +pseudostreaming 插件及其 ipad javascript 测试设置。玩家可以玩它,但我面临一个问题,随机搜索似乎不起作用。每次我这样做时,视频都会重新启动,即使滑动条移动到新位置并且时间也会更新。我似乎只发生在 flash flowplayer(firefox、chrome、android+flash)上。我在 iPhone 上尝试过,效果很好。
所以现在我想知道是什么导致了这个问题。是cloudfront的问题还是flowplayer设置的问题。
以下是我正在使用的 flowplayer 代码
$f("player", "flowplayer-3.2.8-dev.swf", {
// configure clip to use "lighthttpd" plugin for providing video data
clip: {
url: 'http://dzvbjmdzl8dz8.cloudfront.net/test_moov.mp4',
provider: 'pseudostream',
autoPlay: true
},
// streaming plugins are configured normally under the plugins node
plugins: {
pseudostream: {
url: 'flowplayer.pseudostreaming-3.2.8-dev.swf'
}
}
}).ipad();
我正在使用的 cloudfront 发行版是普通的下载发行版。
I am trying to setup progressive download of an mp4 file from aws cloudfront to support apple mobile devices.
I have created the mp4 with moov atom at the beginning of the file. I am testing the setup using flowplayer + pseudostreaming plugin and their ipad javascript. The player plays it but I am facing one problem, random seeks doesnt seem to work. Everytime I do that the video just restart even though the scrub bar moves to the new position and the time get updated. I seem to happen only on flash flowplayer(firefox, chrome, android+flash). I tried it on an iphone an its working fine.
So now I am wondering what is causing this problem. Is it an issues with cloudfront or something to do with flowplayer settings.
The following is the flowplayer code I am using
$f("player", "flowplayer-3.2.8-dev.swf", {
// configure clip to use "lighthttpd" plugin for providing video data
clip: {
url: 'http://dzvbjmdzl8dz8.cloudfront.net/test_moov.mp4',
provider: 'pseudostream',
autoPlay: true
},
// streaming plugins are configured normally under the plugins node
plugins: {
pseudostream: {
url: 'flowplayer.pseudostreaming-3.2.8-dev.swf'
}
}
}).ipad();
The cloudfront distribution I am using is a normal download distribution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以相同的方式使用 CloudFront 处理 MP4 H.264 编码视频,没有出现任何问题。
为了确保 moov 原子确实位于文件的开头,我建议使用 qt-faststart (FFMPEG 的一部分)。
I am using CloudFront the same way with MP4 H.264 encoded videos without a problem.
To make sure the moov atom is really at the beginning of the file I suggest using the qt-faststart (part of FFMPEG).