Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
adrianc1982
Visitor

Re: Closed Captioning throwing: ERROR: Missing or invalid PH

"SoN9ne" wrote:
"adrianc1982" wrote:

i did it like this:

	m.player.SetContentList([{
streamFormat: m.container
stream: { url: url }
PlayStart: 0
FullHD: True
SubtitleConfig: { TrackName: m.container+"/3" }
ShowSubtitle: 1
}])


I actually tried both ways, the documentation states it should be in SubtitleConfig, but the error still happens either way. The ShowSubtitle is a flag to force the closed captions to show by default instead of the user telling it to with the remote. I don't want it on by default but I do need the capability as the channel I am working on is for elders.


you can activate subtitles just get the position the movie is at, set the metadata while movie is playing to showsubtitles and then do a .play() again. If you did it right movie will start playing at the position it was with subtitles on, you can put subtitles off the same way...
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.