我正在创建一个Chromecast应用程序,流视频和使用流外VTT字幕。我已经成功地加载TTML,但我需要加载VTT也为此,我有以下代码
this.player.enableCaptions(true, 'vtt', 'http://some_file.vtt');此操作在MediaPlayer.js内失败,并显示以下错误
Uncaught TypeError: Cannot read property 'parse' of null这看起来是在加载单个提示的代码中,有没有人遇到过这个问题?
https://stackoverflow.com/questions/38188461
复制相似问题