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
Post a Comment