fix: force text track updateDisplay to recalculate on playerresize#9160
fix: force text track updateDisplay to recalculate on playerresize#9160Frenzie wants to merge 1 commit intovideojs:mainfrom
Conversation
|
💖 Thanks for opening this pull request! 💖 Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Otherwise processCues reuses the old position and size.
7694344 to
0e095b3
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9160 +/- ##
==========================================
- Coverage 84.32% 84.32% -0.01%
==========================================
Files 120 120
Lines 8153 8157 +4
Branches 1964 1967 +3
==========================================
+ Hits 6875 6878 +3
- Misses 1278 1279 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I can't reproduce the issue on Chrome or Firefox. It's resizing without your change. Is there anything more to know to reproduce that? |
|
That means you selected any of the subtitle tracks, not the cc1 caption track. ;-) It happens in all browsers because the issue is that it purposefully skips computing the size/position when resizing. |
|
Sorry, I see now! |
|
No problem and thanks! While I have your attention, would you mind taking a look at my PRs against vtt.js? |
Otherwise processCues reuses the old position and size.
Description
Specific Changes proposed
Force recalculation in vtt.js in this function:
Requirements Checklist
npm run docs:apito error