Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
IRoad
Level 7

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 Smiley Happy
Thanks in advance...
0 Kudos
1 Reply
IRoad
Level 7

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