Hi,
I am new to developing and I have successfully enabled eia608 caption rendering with the
simplevideoplayer SDK example playing a live/linear feed (hls .m3u8). I used the sample code (url modified for my feed) from the support docs in my appMain.brs and it worked great.
videoScreen = CreateObject("roVideoScreen")
subtitle_config = {
TrackName: "eia608/1"
}
metaData = {
Stream: {
Url: "http://server.com/test.m3u8"
}
StreamFormat: "hls"
SubtitleConfig: subtitle_config
}
videoScreen.SetContent( metaData )
videoScreen.Show()
I have now switched to the
videoplayer example using XML files to build out a more complicated feed line up (playing the same type of live / linear hls feeds). Everything video and audio plays great, except I cannot get the Roku to enable / render captions. I have tried to model the aforementioned code example in my
videoplayer channel but I cannot seem to enable captions on any of my feeds. That code is somewhat static when calling out the playback URL, whereas the
videoplayer example requires a more dynamic flow. I have tried tweaking different .brs files and the XMLs but nothing seems to work.
Can anyone with experience provide some guidance and code examples to update my videoplayer channel? My boss was hoping to see a demo of this in use and I know he will want live captions on the feeds.
Many thanks in advance
🙂