Replies: 2 comments 1 reply
-
videojs can play m3u8 files already.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
@lastpeony what about something like: // I assume that the m3u8-parser library has been loaded.
const parser = new m3u8Parser.Parser();
fetch('https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/subtitles/eng/prog_index.m3u8')
.then(r => r.text())
.then(manifest => {
parser.push(manifest);
parser.end();
const parsedManifest = parser.manifest;
console.log(parsedManifest);
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using
https://github.com/videojs/http-streaming
to play a hls stream.
How can i parse content of m3u8 file on client?
I saw
https://github.com/videojs/m3u8-parser
but there were only examples with local m3u8 files.
Beta Was this translation helpful? Give feedback.
All reactions