Repository navigation
Replies: 2 comments
|
Just for the record, the Chrome-on-android native captions problem was solved in videojs 4.6.4 with |
0 replies
|
Thanks for coming back to share your solution! Glad you got it working. This will really help other people with the same problem. 🙌 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm still using Videojs 4.6.4 because - so I'm told - one of the “happy accidents” of Video.js 4.x is that it leaves the
<track>element in the DOM and lets you style captions with CSS like any other element. So you can setfont-size,colorandline-heightin videojs.css and use those styles in your .VTT caption files instead ofvideo::cue. On my site I've also set.vjs-text-track-displayto display as atable-cell; height: 100%; width: 100%;which allows positioning captions anywhere on the video. So things like this are possible in the VTT file:These VTT-with-CSS files render as intended in most browsers and OSs I've tested - e.g. Chrome & Firefox on Windows, Safari on iphones/ipad, Firefox on android. So, it's a great feature for combining your video with some flashy captions styled however you please.
But lately I've discovered that - sometimes - Chrome and Samsung Internet on Android ignore
.vjs-text-track-display pand render them as boring native captions centered at the bottom of the screen. It doesn't happen always - in fact most times it displays the styled<track>captions as intended, but maybe 1 out of 5 times it doesn't. How can a bug be so random? What's going on "under the hood/bonnet"? Any ideas?All reactions