Skip to content
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

Add parameter to processCues API to allow styling to be overridden. #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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?

Base automatically changed from master to main January 22, 2021 18:43
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