如何在播放其中一个在线视频时交替缓冲两个在线视频?

发布于 2024-08-29 17:30:12 字数 186 浏览 3 评论 0原文

在我的网站上,我希望我的用户能够在视频 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独自唱情﹋歌 2024-09-05 17:30:17

这是不可能的。这可能是没有必要的。通过一些缓冲区配置调整,您应该能够在视频之间切换,而任一视频的缓冲可以忽略不计。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文