HTML5 支持视频的 HTTP 伪流吗?
我可以点击某个时间,即使到那时视频尚未下载并且视频从我点击的时间开始播放吗? 如果是,那么观看流媒体视频的更好选择是什么 - HTML5 或 Flash 播放器(如 JW 播放器)?哪一个的延迟会更小?
Can I click on some time and eventhough the video is not downlaoded till that time and the video starts playing from the time I clicked?
If yes, what would be a better option for viewing streamed video- HTML5 or flash player like JW player? WHich one will have less lag?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
HTML5 浏览器通常不支持此功能,但我相信 Safari 中的视频标签将与 Apple HTTP Streaming 格式配合使用以实现此功能。对于适用于所有浏览器的功能,Flash Player 可以使用 RTMP 流式传输或 HTTP 流式传输(使用或不使用 OSMF 来支持)。最简单的起点可能是 OSMF,它支持 RTMP 和 HTTP 视频流。
HTML5 browsers generally don't support this, however I believe the video tag in Safari will work with the Apple HTTP Streaming format for this functionality. For something that works across all browsers, Flash Player can do it using either RTMP streaming or HTTP Streaming (either with our without OSMF to support this). Probably the easiest place to start is with OSMF, which supports both RTMP and HTTP streaming of video.
我已经用 Firefox 和 Firebug 对此进行了测试,虽然您可以“搜索”视频中的某个点,而不必观看您想要搜索的点之前的视频,但这仍然会导致下载整个视频文件。
事实上,每次您在 Firefox 4 中搜索时,都会下载整个视频。
随着 HTML 5 视频实现变得更加成熟,这可能会发生变化和改进,并且可能会根据实际使用的浏览器而有所不同。
有关测试的更多信息,请访问:
http://www.stevefenton.co.uk/Content/Blog/Date/201106/Blog/HTML-5-Video-In-Real-Life/
I have tested this with Firefox and Firebug and while you can "seek" to a point in the video without having to watch video preceding the point you wish to seek, this still causes the entire video file to download.
Indeed, each time you seek in Firefox 4, the entire video downloads.
This may change and improve as HTML 5 video implementations become more mature and may differ based on the actual browser being used.
More information on the test here:
http://www.stevefenton.co.uk/Content/Blog/Date/201106/Blog/HTML-5-Video-In-Real-Life/