-
Notifications
You must be signed in to change notification settings - Fork 428
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
feat: Add ability to pass encoding value for 708 captions via captionServices #1194
Conversation
…ub.com/videojs/http-streaming into add-encoding-option-to-captionServices
@@ -482,6 +481,9 @@ This option defaults to `false`. | |||
The captionServices options object has properties that map to the caption services. Each property is an object itself that includes several properties, like a label or language. | |||
|
|||
For 608 captions, the service names are `CC1`, `CC2`, `CC3`, and `CC4`. For 708 captions, the service names are `SERVICEn` where `n` is a digit between `1` and `63`. | |||
|
|||
For 708 caption services, you may additionally provide an `encoding` value that will be used by the transmuxer to decode the captions using an instance of [TextDecoder](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder). This is to permit and is required for legacy multi-byte encodings. Please review the `TextDecoder` documentation for accepted encoding labels. |
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.
thanks for updating the docs!
Codecov Report
@@ Coverage Diff @@
## main #1194 +/- ##
==========================================
- Coverage 86.60% 86.33% -0.27%
==========================================
Files 39 39
Lines 9652 9691 +39
Branches 2231 2243 +12
==========================================
+ Hits 8359 8367 +8
- Misses 1293 1324 +31
Continue to review full report at Codecov.
|
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.
Approved, though, I guess we should wait to update mux.js in this PR
d6d16f7
Description
Complementary Mux.js PR: videojs/mux.js#398
The 708 implementation of mux will soon support multibyte character encodings, so this PR adds a way to pass the option to the transmuxer. using the existing
captionServices
options block.