Skip to content

Conversation

OwenEdwards
Copy link
Member

@OwenEdwards OwenEdwards commented Jun 12, 2018

Similar to the change in mozilla/vtt.js to allow external control of styling of the WebVTT cues, add a parameter to the processCues API that allows video.js to pass its captions settings for video-vtt.js to implement them.

This PR supports all the styling options currently supported in video.js' text-track-display.js, while retaining backward compatibility with existing versions of video.js which haven't been changed to take advantage of this new parameter in the API.

Ultimately, moving the styling into video-vtt.js will allow for other customizations of Captions which are provided in other browsers but not currently available in video.js and video-vtt.js (e.g. not overriding any styling which is contained in the captions themselves), and also significantly simplify text-track-display.js.

This PR needs to add documentation for what parameters can be passed for styling, and to check for validity of parameters before using them.

@cobarx
Copy link
Contributor

cobarx commented Jan 19, 2019

Hi @OwenEdwards thanks for implementing this functionality, it's something that will help our team quite a bit as well. Any chance that you can fill in the docs for this feature?

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