I am trying to use the media player that TVML provides to play videos from inside my TVOS app. Everything works fine and the HLS stream manifest file (m3u8)
I have plays perfectly on the player.
My concern here is how can I add a subtitle file(srt, vtt) to the player. The player seem to extract and build the subtitles automatically from my m3u8 file, but I have separate subtitle files with me for each video item. It seems at the moment I'll have to encode the subtitles file within the m3u8, which would be a overhead considering all other players(HTML5 and android) support external subtitle file and I have more than 1000 video files.
I could not find any documentation for the Player or for the MediaItem in the TVJS to be able to achieve the same. I can't even attach a subtitle to the MediaItem programatically.
I've referenced the following URLS:
Any help on this would be great.
It seems at the moment there is no external subtitle file support.
Probably in future Apple might add the same, but currently we'll have to burn the subtitle files within the m3u8 playlist.