Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play multi part video without interrupts (HTML5)

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?

like image 395
Joel Avatar asked May 14 '26 08:05

Joel


1 Answers

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.

like image 174
Joel Avatar answered May 16 '26 00:05

Joel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!