benjipott / video.js-chromecast

Use chromecast with videojs html5 player
Other
207 stars 86 forks source link

Subtitles? .vtt #38

Closed Fenny closed 6 years ago

Fenny commented 7 years ago

Does anyone know how to stream .vtt or .srt to chromecast with this plugin? I tried about anything but it doesn't work when casting..

benjipott commented 6 years ago

Hello, what is your code sample ?

SarasotaSlim commented 6 years ago

Having a VTT track tag breaks Chromecast plugin:

http://weasel.firmfriends.us/True-Romance/

The root cause is that the present plugin v2.0.8 code does NOT respond to your track tag/element, if you have attribute " kind='subtitles' ". So, a simple WORKAROUND for this issue is simply to change your attribute to be " kind='captions' ". (The launching button-text will show up as 'CC' instead of 'SUBTITLES', but you will achieve the desired functionality that you're wanting.)