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

fix: Check for VTTCue #8370

Merged
merged 6 commits into from
Jul 20, 2023
Merged

fix: Check for VTTCue #8370

merged 6 commits into from
Jul 20, 2023

Conversation

wseymour15
Copy link
Contributor

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 the window 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

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Change has been verified in an actual browser (Chrome, Firefox, IE)
    • Unit Tests updated or fixed
    • Docs/guides updated
    • Example created (starter template on JSBin)
  • Reviewed by Two Core Contributors

@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #8370 (93d4139) into main (2b0df25) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            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     
Impacted Files Coverage Δ
src/js/tracks/text-track.js 94.23% <100.00%> (-0.65%) ⬇️

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@wseymour15
Copy link
Contributor Author

wseymour15 commented Jul 20, 2023

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.

@misteroneill misteroneill marked this pull request as draft July 20, 2023 15:44
Copy link
Member

@misteroneill misteroneill left a 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.

@wseymour15
Copy link
Contributor Author

wseymour15 commented Jul 20, 2023

we do not need to update the version of VHS here, since technically VHS depends on Video.js in this instance.

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!

@wseymour15 wseymour15 marked this pull request as ready for review July 20, 2023 16:05
@wseymour15 wseymour15 merged commit da15810 into main Jul 20, 2023
10 of 12 checks passed
@wseymour15 wseymour15 deleted the fix/check-for-vttcue branch July 20, 2023 16:38
wseymour15 added a commit that referenced this pull request Jul 20, 2023
wseymour15 added a commit that referenced this pull request Jul 20, 2023
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.

2 participants