videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.45k stars 419 forks source link

feat: enable caption positioning #1408

Closed wseymour15 closed 11 months ago

wseymour15 commented 11 months ago

Description

This consumes the work completed in mux.js here: https://github.com/videojs/mux.js/pull/434

The goal of this work is to ensure that we can position CEA 608 captions. The bulk of the work was done in mux.js, but this just ensures that we take that data and turn them into valid VTTCues . This will ensure that the captions are positioned correctly based on that CEA 608 caption data.

To Test

Pull down this branch and run npm i and npm start, and then navigate to http://localhost:9999. In the closed caption menu, choose the CC1 option and see that the captions are positioned in different places on the screen.

Specific Changes proposed

Requirements Checklist

welcome[bot] commented 11 months ago

πŸ’– 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.

codecov[bot] commented 11 months ago

Codecov Report

Merging #1408 (79a10fe) into main (7c0e968) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1408      +/-   ##
==========================================
+ Coverage   85.54%   85.55%   +0.01%     
==========================================
  Files          41       41              
  Lines       10125    10143      +18     
  Branches     2345     2349       +4     
==========================================
+ Hits         8661     8678      +17     
- Misses       1464     1465       +1     
Impacted Files Coverage Ξ”
src/util/text-tracks.js 89.39% <100.00%> (+0.68%) :arrow_up:

... and 1 file with indirect coverage changes

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

welcome[bot] commented 11 months ago

Congrats on merging your first pull request! πŸŽ‰πŸŽ‰πŸŽ‰