chromecastcaptionsvtt

Chromecast VTT not showing


I am creating a Chromecast app that streams video and uses out of stream VTT captions. I have successfully managed to load TTML but I require to load VTT also for this I have the following code

this.player.enableCaptions(true, 'vtt', 'http://some_file.vtt');

this fails within the MediaPlayer.js with tyhe following error

Uncaught TypeError: Cannot read property 'parse' of null

This looks to be in the code to load the individual cues has anyone come across this problem?


Solution

  • this.player.enableCaptions(true, 'vtt', 'http://some_file.vtt');
    

    should be

    this.player.enableCaptions(true, 'webvtt', 'http://some_file.vtt');