gooky
10 years agoVisitor
How to change subtitles during playback
Hi,
I want the user to be able to choose between different subtitles, I use the code below. However any changes are not applied to the movie.
What am i doing wrong?
I want the user to be able to choose between different subtitles, I use the code below. However any changes are not applied to the movie.
What am i doing wrong?
sub init()
movieNode = CreateObject("roSGNode", "ContentNode")
movieNode.Title = "Movie name"
movieNode.StreamFormat = "mp4"
movieNode.URL = "http://187.188.137.31/test.m4v"
movieNode.SubtitleTracks = [{ TrackName: "http://187.188.137.31/latin.srt", Language:"spa", Description:"Spanish" }, { TrackName: "http://187.188.137.31/english.srt", Language:"eng", Description:"English" }]
m.player = m.top.findNode("player")
m.player.content = movieNode
m.player.control = "play"
m.player.setFocus(true)
end sub