Play multi part video without interrupts (HTML5)

大憨熊 提交于 2019-12-11 09:18:49

问题


I want to split a video into parts, but play it in the browser as a single video. In my inital attempt I split the video with ffmpeg and used the onended event to play the next part. The disadvantage is that it interrupts before the next part is started. Also, it's not possible anymore to use the built in controls for seeking.

Therefore, I am wondering if it's possible to split the video into chunks of a certain size, load always only the current chunk and avoid the interrupts somehow. The perfect solution would be if I could implement my own stream or blob type which loads the chunks asynchronously.

Any ideas?


回答1:


One possible solution is the MediaSource API: http://updates.html5rocks.com/2011/11/Stream-video-using-the-MediaSource-API Unfortunately, only Chrome supports it yet.



来源:https://stackoverflow.com/questions/16250154/play-multi-part-video-without-interrupts-html5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!