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

EXT-X-START tag support #31

Merged
merged 8 commits into from
Nov 20, 2017
Merged

Conversation

masterful
Copy link
Contributor

This should add support for the EXT-X-START tag and its two attributes.

Copy link
Contributor

@gesinger gesinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! A couple minor comments, but looks great otherwise.

if (match[1]) {
event.attributes = parseAttributes(match[1]);

event.attributes['TIME-OFFSET'] = parseFloat(event.attributes['TIME-OFFSET'], 10);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does parseFloat take a second parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe it does - sorry about that, I'm used to parseInt taking a base parameter and just assumed parseFloat behaved similarly...

});
parser.push(manifest);

assert.ok(warning, 'a warning was triggered');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor, but might be worth testing the warning message.

@gesinger gesinger merged commit 31b6d0b into videojs:master Nov 20, 2017
@gesinger
Copy link
Contributor

Tested locally and tests pass after working around rollup issue.

@masterful masterful deleted the ext-x-start-support branch November 20, 2017 22:40
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