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: 
IRoad
Visitor

Subtitles .SRT

Hi,
I am trying to add a subtitles on my channel. I added on my xml this code:

<item sdImg="http://xxxxxxxx.cloudfront.net/vodrokuartwork/y-dna-h.jpg" hdImg="http://xxxxxxxxxx.cloudfront.net/vodrokuartwork/y-dna-h.jpg">
<title>MRI - Magnetic Resonance Imaging</title>
<contentId>199990</contentId>
<contentType>movie</contentType>
<contentQuality>SD</contentQuality>
<preplay1>http://xxxxxxxx.cloudfront.net/ads/ads1.mp4</preplay1>
<streamFormat>mp4</streamFormat>
<srt>http://xxxxxxxxxx.cloudfront.net/CC/mri-xxxxxxi.srt</srt>
<media>


I believe a this point, I need to change something on apVideoScreen.... I did it few month ago and now I lost the code....maybe the age 🙂
Thanks in advance...
0 Kudos
1 REPLY 1
IRoad
Visitor

Re: Subtitles .SRT

Done, follow these steps

<srt>http://myserver.com/videos/myvideo.srt</srt>


and in showFeed.brs near the bottom:

item.SubtitleURL=validstr(curShow.srt.GetText())
item.SDBifUrl= validstr(curShow.sdBifUrl.GetText())
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.