I am trying to get subtitles working with the following stream. I am unable to get subtitles to show. I have used the below stream, http://playertest.longtailvideo.com/ada ... ylist.m3u8 to test. In VLC, the steam works fine for subtitles. I have also used our own streams which I will be happy to PM if you need to further debug. I just can't get this to work with HLS streaming at all on Roku 3. Sub Main() print "Displaying video: " p = CreateObject("roMessagePort") video = CreateObject("roVideoScreen") video.setMessagePort(p)
while true msg = wait(0, video.GetMessagePort()) if type(msg) = "roVideoScreenEvent" if msg.isScreenClosed() then 'ScreenClosed event print "Closing video screen" return exit while else if msg.isPlaybackPosition() then nowpos = msg.GetIndex() if nowpos > 10000
end if if nowpos > 0 if abs(nowpos - lastSavedPos) > statusInterval lastSavedPos = nowpos end if end if else if msg.isRequestFailed() print "play failed: "; msg.GetMessage() else print "Unknown event: "; msg.GetType(); " msg: "; msg.GetMessage() endif end if end while end Sub
You're explicitly setting the SubtitleUrl to an empty string. I wonder if that's overriding the SubtitleConfig. Try commenting out that line and see if it makes a difference. Alternatively, you could comment out the SubtitleConfig and just set the SubtitleUrl to "eia608/1" which is what I tend to do if there's only one subtitle option.