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
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!