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

parse x-timestamp-map #4

Merged
merged 2 commits into from
Mar 13, 2017
Merged

parse x-timestamp-map #4

merged 2 commits into from
Mar 13, 2017

Conversation

mjneil
Copy link
Contributor

@mjneil mjneil commented Feb 9, 2017

}, /[^\d]:/, /,/);

self.ontimestampmap && self.ontimestampmap({
"MPEGTS": settings.get("MPEGTS"),
Copy link
Member

Choose a reason for hiding this comment

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

this is hilarious.

Copy link
Member

Choose a reason for hiding this comment

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

And by this, I mean LOCA and MPEGT.

Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

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

This also needs to be rebased against master. I've been doing some housekeeping to make it easier for us to publish our fork of vttjs.

Does this require a follow up PR for more functionality, as asked in the line comment?

Also, I think some docs in the README would be nice.

}, /:/);
}, /[^\d]:/, /,/);

self.ontimestampmap && self.ontimestampmap({
Copy link
Member

Choose a reason for hiding this comment

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

so, ontimestampmap is a method on the parser that will be called with the MPEGTS and LOCAL times? Does it mean that the user still needs to manually shift all the timestamps by this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the user would have to manually shift the timestamps. The timestamp map tag only gives a mapping from cue time to TS time, but the mapping from TS to display time is still needed for the shift. I think this approach is the easiest instead of storing state on the parse for the extra mapping

Copy link
Member

Choose a reason for hiding this comment

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

hm... maybe it's the best option; it just seems to be only half complete this way.

@mjneil mjneil force-pushed the x-timestamp-map branch 2 times, most recently from 42bc909 to 5003c5f Compare March 1, 2017 16:15
@imbcmdth
Copy link
Member

@gkatsev Can we please just get this merged before we decide what to do about vtt.js in the longer term?

@gkatsev gkatsev merged commit 9c3132a into videojs:master Mar 13, 2017
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