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
Subtitles style video.js v4.12.5 #2011
Comments
We switched to using VTT.js, which is styled a little differently than VJS' custom captions implementation from before. The VTT.js docs forward along to the spec for applying css styles, so it should be the same for both native or emulated text tracks. |
Too much confuse, for noob people. |
Should have a tutorial how to implement this. |
I don't know if this is what @x3qmat is referring to, but the ability of the user to style Captions and Subtitles in 4.12.x when rendered by VTT.js is broken in the minified video.js, although it works with the video.dev.js. I've tracked it down to this line:
https://github.com/videojs/video.js/blob/stable/src/js/tracks/text-track-controls.js#L132 which gets mangled in minification. I don't know the fix - perhaps this?
@gkatsev, you're the expert on this! |
x3qmat install an older version 4.11.4, everything can be changed in CSS |
With the new tracks, we're either relying on native tracks or emulated tracks. Emulated tracks have a captions settings dialog that allow you to test some styles on the cues. Closing as there's nothing else to do in videojs for this. |
Hello, I have problems with style of the subtitles and captions
With this version we can not change the font or background color, or put transparent , I think the problem is in video.js file, someone can solve this? Or explain me how can I do ? On IE11 background is transparent, but color wont change, and on Chrome, both dont work.
The text was updated successfully, but these errors were encountered: