Chromecast subtitle

只谈情不闲聊 提交于 2019-12-11 13:55:51

问题


I have successfully cast video to chromecast now I am trying to add support for subtitles, here I am facing two problems

  1. When I stream vtt files using NanoHttpd chromecast returns error code 2100, although I am streaming videos using same server and it works
  2. To figure out problem I uploaded the vtt file to dropbox and now chromecast returns success also setting mediatracks returns success but subtitles are not shown.

Note : I am using Chromecast default media receiver

So what I am doing wrong?


回答1:


If I recall correctly, your server needs to provide CORS support for Closed Captions, even if you are simply streaming mp4 media files, so make sure that happens when using your embedded server. Once that is done, make sure you are setting the "active tracks" correctly. If at that point you have an issue, you'd need to provide more information: your code around adding and activating tracks, your receiver log (for which you'd need either a Styled or custom receiver).



来源:https://stackoverflow.com/questions/36951929/chromecast-subtitle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!