AS3 FLVPlayback 与渐进式 .mp4
所以我有一个动态创建的 FLVPlayback 对象,并且在大多数情况下一切都工作得很好。
但是,当我用它加载 MP4 文件(通过 HTTP)时,只有下载整个文件后它才会播放。
经过一些研究后,我使用 QTIndexSwapper2 将“moov”原子放在文件的开头,但没有帮助。
有什么想法或建议吗?目前无法选择使用 RTMP 服务器。
非常感谢。
编辑 当缓冲条达到80%左右时,视频开始播放。我不知道这是否只是缓冲栏中的不准确,或者它是否实际上在完全下载之前播放视频。
So I have a dynamically created FLVPlayback object and for the most part everything is working just peachy.
However, when I load an MP4 file (via HTTP) with it, it will not play until the entire file is downloaded.
After doing some research, I used QTIndexSwapper2 to put the 'moov' atom at the beginning of the file, but it did not help.
Any ideas or suggestions? Using an RTMP server is not an option right now.
Many thanks.
EDIT
The video starts playing when the buffering bar reaches about 80%. I don't know if this is just an inaccuracy in the buffering bar or if it's actually playing the video before it's fully downloaded.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这里有一些可能的解决方案:
*.f4v
Here some possible solutions:
*.f4v
我遇到了同样的问题,我使用 Adobe Media Encoder 将视频重新编码为 F4V 文件。他们似乎工作得很好。
I had the same problem and I re-encoded the videos as F4V files using Adobe Media Encoder. They seem to work just fine.
我遇到了同样的问题,使用 F4V(After Effects)渲染解决了这个问题。
I had the same problem and rendering with F4V(after effects) solved this issue.