-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: expose custom M3U8 mapper API #325
Conversation
src/playlist-loader.js
Outdated
@@ -10,6 +10,9 @@ import videojs from 'video.js'; | |||
import { Parser as M3u8Parser } from 'm3u8-parser'; | |||
import window from 'global/window'; | |||
|
|||
// TODO: REMOVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to add the condition for removal (for future explorers).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is going to be removed in this PR, I just have the stub here so the tests execute as much as possible before updating the m3u8-parser
src/playlist-loader.js
Outdated
@@ -266,6 +274,12 @@ export default class PlaylistLoader extends EventTarget { | |||
|
|||
const parser = new M3u8Parser(); | |||
|
|||
// adding custom tag parsers | |||
this.parsers.forEach(tagParser => parser.addParser(tagParser)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be a little less confusing if this is customParser
instead of tagParser
Code looks good from a high-level. I'll re-review when m3u8-parser is released. |
Split this into two PRs |
Waiting for #331 |
Going to add a test module for |
Description
Exposes parser and mapping APIs from the m3u8-parser module.
Requirements Checklist