问题
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