Create a video playlist for webm files (m3u8?)

Viewed 35

I have large video which is split into a bunch of webm files recorded with video/webm; codecs=vp8 with a length of 10 seconds:

video-0.webm
video-1.webm
video-2.webm
...

Each of these files includes all metadata and an audio track, each file is playable on its own.

Is there a way to create a m3u8 playlist which allows me to plug this into a HTML <video> element?

I've tried to create one by hand:

#EXTM3U
#EXTINF:0,video-0.webm
http://example.com/video/video-0.webm
#EXTINF:0,video-1.webm
http://example.com/video/video-1.webm
#EXTINF:0,video-2.webm
http://example.com/video/video-2.webm
#EXTINF:0,video-3.webm
http://example.com/video/video-3.webm

This plays fine in VLC but won't play in any of the browsers I've tried, using both the native <video> element and with the help of video.js.

Is there a way to accomplish what I'm after?

0 Answers
Related