javascript - Changing the text size for subtitles in Shaka Player -


we looking use shaka player , have played around demo of player here: https://shaka-player-demo.appspot.com/demo/. 1 of requirements have user able change text size of closed captions. see have option toggle cc option in demo, couldn't find related modifying displayed text.

i did debug this.player_ object see if there available tweak displayed subtitle text, couldn't find anything.

is there api available or not possible this?

thanks help!

you can change appearance altering style - using css - of shadow dom elements generated when subtitles injected shaka.

in case using ::cue pseudoelement this:

::cue {   font-size: 12px; } 

see more here: https://w3c.github.io/webvtt/#styling (note not mentioned there may implemented in current browsers)


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -