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
5.x fix cue-points with a startTime of 0 #4148
Conversation
@@ -331,7 +335,7 @@ class TextTrack extends Track { | |||
addCue(originalCue) { | |||
let cue = originalCue; | |||
|
|||
if (!(originalCue instanceof window.vttjs.VTTCue)) { | |||
if (window.vttjs && !(originalCue instanceof window.vttjs.VTTCue)) { |
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.
I was mocking vttjs out https://github.com/videojs/video.js/pull/4146/files#diff-3b4ce30c38112a433d137fb9bf1bcbc9R21 but this probably is a better choice.
@@ -25,7 +27,7 @@ TrackBaseline(TextTrack, { | |||
mode: 'disabled', | |||
label: 'English', | |||
language: 'en', | |||
tech: defaultTech | |||
tech: new TechFaker() |
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.
should this be this.tech
?
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.
its a suite of tests that runs on it's own, so it won't have access to this.tech
as it is not in a QUnit.test
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.
oh, I see. LGTM then.
Description
Wait for tech to be ready before worrying about timeupdate events
Requirements Checklist