Peer5 / videojs-contrib-hls.js

HLS library for video.js using Dailymotion's hls.js tech
Apache License 2.0
108 stars 53 forks source link

videojs captions button does not appear #21

Open ranuser99 opened 7 years ago

ranuser99 commented 7 years ago

Captions button does not appear when viewing a live stream with captions. Hls.js is processing captions and I can manually display by calling:

videojs.textTracks[0].mode = 'showing'

Can you point me to a brief example showing how to enable the captions button? Do I need to wire it up to call mode = 'showing' and mode = 'hidden' ?

Thank you!

tmm1 commented 7 years ago

Hls.js is processing captions and I can manually display by calling:

videojs.textTracks[0].mode = 'showing'

Huh, this isn't valid code AFAICT. Do you mean something like player.textTracks()[0]? In my case, I don't even see an text tracks being populated on the player..