-
Notifications
You must be signed in to change notification settings - Fork 211
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(CaptionStream): add flag to turn off 708 captions #365
Conversation
This options flow through the transmuxer into CaptionStream.
Add cc708 as a VHS option to turn off 708 captions. This PR depends on videojs/mux.js#365
lib/m2ts/caption-stream.js
Outdated
|
||
CaptionStream.prototype.init.call(this); | ||
|
||
// cc708 flag, default to true | ||
this.cc708_ = typeof options.cc708 === 'boolean' ? options.cc708 : true; |
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.
I think it might be better to add a bit more description. Maybe something like include708Captions
or parse708Captions
.
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.
Probably worth adding a test for the option.
lib/m2ts/caption-stream.js
Outdated
|
||
CaptionStream.prototype.init.call(this); | ||
|
||
// cc708 flag, default to true | ||
this.cc708_ = typeof options.cc708 === 'boolean' ? options.cc708 : true; |
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.
Might be worth changing the name to be a bit more descriptive. Maybe include708Captions
or parse708Captions
.
lib/m2ts/caption-stream.js
Outdated
this.parse708captions_ = typeof options.parse708captions === 'boolean' ? | ||
options.parse708captions : | ||
true; | ||
this.parse708captions_ = true; |
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.
this is to demonstrate the test failing
This options flow through the transmuxer into CaptionStream.