-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
fix: Check for VTTCue #8370
fix: Check for VTTCue #8370
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8370 +/- ##
==========================================
- Coverage 82.68% 82.65% -0.04%
==========================================
Files 113 113
Lines 7561 7651 +90
Branches 1818 1867 +49
==========================================
+ Hits 6252 6324 +72
- Misses 1309 1327 +18
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
NOTE: Before merging, we need to ensure we pull in the new version of vtt.js including changes from this PR: videojs/vtt.js#65 Also, we do not need to update the version of VHS here, since technically VHS depends on Video.js in this instance. |
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.
LGTM, but converted to a draft in case it's still blocked. Feel free to mark it ready if that's erroneous.
Thanks @misteroneill! In this case, we have all the dependencies we need, as VHS actually depends on the changes here. We will need to update the video.js version in VHS once this is deployed. I'll reopen this! |
This was causing a bug when it came to VTT Cue positioning. This check was never true becasue the
window
instances of the VTTCue being checked, and thewindow
instance here are never the same.Specific Changes proposed
A different way to check if the property being used is indeed a VTTCue.
Requirements Checklist