Skip to content

feat: expose custom M3U8 mapper API#325

Merged
forbesjo merged 5 commits into
masterfrom
parser-api
Jan 10, 2019
Merged

feat: expose custom M3U8 mapper API#325
forbesjo merged 5 commits into
masterfrom
parser-api

Conversation

@forbesjo

@forbesjo forbesjo commented Jan 2, 2019

Copy link
Copy Markdown
Contributor

Description

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

Requirements Checklist

Comment thread src/playlist-loader.js Outdated
import { Parser as M3u8Parser } from 'm3u8-parser';
import window from 'global/window';

// TODO: REMOVE

Copy link
Copy Markdown
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).

@forbesjo forbesjo Jan 2, 2019

Copy link
Copy Markdown
Contributor Author

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

Comment thread src/playlist-loader.js Outdated
Comment thread src/playlist-loader.js Outdated
const parser = new M3u8Parser();

// adding custom tag parsers
this.parsers.forEach(tagParser => parser.addParser(tagParser));

Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@forbesjo

forbesjo commented Jan 4, 2019

Copy link
Copy Markdown
Contributor Author

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

forbesjo commented Jan 4, 2019

Copy link
Copy Markdown
Contributor Author

Waiting for #331

@forbesjo forbesjo added blocked and removed blocked labels Jan 4, 2019
@forbesjo

Copy link
Copy Markdown
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.

3 participants