Search code examples
chromecastgoogle-cast

Can I set the track ids after the video is playing?


I'm trying to implement subtitles on a Chromecast Android app but I don't see a way to add the tracks after the media is already playing. Am I missing something or is that not possible? I'm pretty sure I've seen other apps doing it.

Thanks.


Solution

  • You cannot add tracks after a media is loaded; you need to either add the tracks before loading the media or add and then reload the media