Skip to content
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

Merged
merged 5 commits into from Jan 10, 2019
Merged

feat: expose custom M3U8 mapper API #325

merged 5 commits into from Jan 10, 2019

Conversation

forbesjo
Copy link
Contributor

@forbesjo forbesjo commented Jan 2, 2019

Description

Exposes parser and mapping APIs from the m3u8-parser module.

Requirements Checklist

@@ -10,6 +10,9 @@ import videojs from 'video.js';
import { Parser as M3u8Parser } from 'm3u8-parser';
import window from 'global/window';

// TODO: REMOVE
Copy link
Contributor

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).

Copy link
Contributor Author

@forbesjo forbesjo Jan 2, 2019

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 Show resolved Hide resolved
@@ -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));
Copy link
Contributor

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

@ldayananda
Copy link
Contributor

Code looks good from a high-level. I'll re-review when m3u8-parser is released.

@forbesjo
Copy link
Contributor Author

forbesjo commented Jan 4, 2019

Split this into two PRs

@forbesjo forbesjo changed the title feat: expose custom M3U8 parser APIs feat: expose custom M3U8 mapper API Jan 4, 2019
@forbesjo
Copy link
Contributor Author

forbesjo commented Jan 4, 2019

Waiting for #331

@forbesjo forbesjo added blocked and removed blocked labels Jan 4, 2019
@forbesjo
Copy link
Contributor Author

Going to add a test module for hls.setOptions_()

@forbesjo forbesjo removed the blocked label Jan 10, 2019
@forbesjo forbesjo merged commit 609beb3 into master Jan 10, 2019
@forbesjo forbesjo deleted the parser-api branch January 10, 2019 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants