如何在播放其中一个在线视频时交替缓冲两个在线视频?
在我的网站上,我希望我的用户能够在视频 1 中间的任何时刻启动视频 2,而无需等待或刷新窗口。如何缓冲这两个视频,以便缓冲视频 1 足以让它开始播放,然后缓冲足够的视频 2,以便如果用户在任何时候启动它,他不必等待观看其前几秒钟,然后我可以回来缓冲视频 1 的其余部分吗?如果这是不可能的,我还可以考虑并行缓冲视频 1 和 2,同时仅播放视频 1。 谢谢!
On my website, I want my user to be able to launch video 2 at any point in the middle of video 1 without waiting or refreshing the window. How can I buffer the two videos such that I buffer video 1 enough to let it start playing, and then buffer just enough of video 2 that if the user launches it at any point, he does not have to wait to view its first few seconds, and then I can come back and buffer the rest of video 1? If this is not possible, I could also look at buffering video 1 and 2 in parallel while playing only video 1.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是不可能的。这可能是没有必要的。通过一些缓冲区配置调整,您应该能够在视频之间切换,而任一视频的缓冲可以忽略不计。
It is not possible. And it is probably not necessary. With some buffer configuration tuning, you should be able to switch between videos with negligible buffering of either video.