-
Notifications
You must be signed in to change notification settings - Fork 43
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
Conversation
}, /[^\d]:/, /,/); | ||
|
||
self.ontimestampmap && self.ontimestampmap({ | ||
"MPEGTS": settings.get("MPEGTS"), |
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 is hilarious.
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.
And by this, I mean LOCA
and MPEGT
.
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 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({ |
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.
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?
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.
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
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.
hm... maybe it's the best option; it just seems to be only half complete this way.
b41a9a4
to
70ada60
Compare
42bc909
to
5003c5f
Compare
@gkatsev Can we please just get this merged before we decide what to do about vtt.js in the longer term? |
mozilla/vtt.js#362