chromecast - Chromcast instream subtitles are not working -


i trying play video multiple instream subtitles on chromecast custom receiver application, not working. here code use enabling subtitles stream:

mediaelement.addeventlistener('playing', function(e) {    setstreamlanguage('text', 'fin');    player.enablecaptions(true);  });    function setstreamlanguage(streamtype, languagecode){              var streaminfo;              var streamtoenable = -1;                for(var = 0; < protocol.getstreamcount(); ++i) {                  streaminfo = protocol.getstreaminfo(i);                    if (streaminfo.mimetype.indexof(streamtype) == 0) {                      // select first stream default in case there no passed stream                      if (streamtoenable < 0)                          streamtoenable = i;                        // disable stream                      protocol.enablestream(i, false);                        // find stream enable                      if (streaminfo.language == languagecode)                          streamtoenable = i;                        console.log('cycling throught: ' + streaminfo.mimetype + " " + streaminfo.language + " " +                                  "is selected: " + protocol.isstreamenabled(i));                  }              }                if (streamtoenable >= 0)              {                  protocol.enablestream(streamtoenable, true);                  console.log("stream " + streamtoenable + " enabled now");              }          }

as result video being played, no subtitles displayed. there error in console: "uncaught urierror: uri malformed".

here manifest, used test: http://usp.neonstingray.com/video/13440/13440.ism/manifest.

here chromecast receiver logs: https://gist.github.com/anonymous/e992c306602fb3cb5b8a


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -