简体   繁体   English

无缝预加载html5视频标签中的媒体文件

[英]Seamless preloading of media files in html5 video tag

I have a file in which I will have all the media file paths. 我有一个文件,其中包含所有媒体文件路径。 I want to play those videos in video tag one after the other. 我想一个接一个地播放视频标签中的那些视频。 But, it should appear like a single video. 但是,它应该看起来像一个视频。 how to preload those videos one after the other? 如何一个接一个地预载那些视频? is this possible in Vanilla JS? 在Vanilla JS中有可能吗?

Yes, of course you can. 是的,当然可以。 It is called Media Source Extensions and it is a basis for building MPEG-DASH streaming protocol. 它称为媒体源扩展,它是构建MPEG-DASH流协议的基础。

There is one nice project that tries to do what you want without MSE, but it is working rather accidentially, not very stable. 有一个不错的项目试图在没有MSE的情况下完成您想做的事情,但它的运行是偶然的,不是很稳定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM