Skip to content

feat: text track display overlays a video - #8009

Merged
gjanblaszczyk merged 2 commits into
videojs:mainfrom
screen9:feat/text-track-overlay
Apr 11, 2023
Merged

feat: text track display overlays a video#8009
gjanblaszczyk merged 2 commits into
videojs:mainfrom
screen9:feat/text-track-overlay

Conversation

@gjanblaszczyk

Copy link
Copy Markdown
Contributor

Description

Text track display does not always overlay a video which may generate a different text track size and position across different browsers and devices.

Specific Changes proposed

The text track display always overlays a video.

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

codecov Bot commented Nov 20, 2022

Copy link
Copy Markdown

Codecov Report

Merging #8009 (0411afc) into main (e49286a) will increase coverage by 0.21%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #8009      +/-   ##
==========================================
+ Coverage   80.98%   81.19%   +0.21%     
==========================================
  Files         116      116              
  Lines        7472     7494      +22     
  Branches     1817     1821       +4     
==========================================
+ Hits         6051     6085      +34     
+ Misses       1421     1409      -12     
Impacted Files Coverage Δ
src/js/tracks/text-track-display.js 84.12% <100.00%> (+2.09%) ⬆️
src/js/utils/browser.js 54.32% <0.00%> (ø)
src/js/tech/html5.js 67.50% <0.00%> (+0.20%) ⬆️
src/js/player.js 88.76% <0.00%> (+0.38%) ⬆️
src/js/tech/tech.js 83.56% <0.00%> (+0.56%) ⬆️
...rc/js/control-bar/progress-control/time-tooltip.js 84.61% <0.00%> (+2.56%) ⬆️
src/js/control-bar/picture-in-picture-toggle.js 82.75% <0.00%> (+3.44%) ⬆️
src/js/control-bar/control-bar.js 100.00% <0.00%> (+16.66%) ⬆️

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

@gkatsev gkatsev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, this works well!
Had a couple of minor comments.

Comment thread src/js/tracks/text-track-display.js Outdated
Comment thread src/js/tracks/text-track-display.js Outdated
Comment thread src/js/tracks/text-track-display.js Outdated
@misteroneill
misteroneill force-pushed the main branch 2 times, most recently from c1898b4 to 4f8227d Compare November 23, 2022 01:30
@gjanblaszczyk
gjanblaszczyk merged commit 1491d71 into videojs:main Apr 11, 2023
edirub pushed a commit to edirub/video.js that referenced this pull request Jun 8, 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