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: 
salman23
Level 7

srt subtitle problem

Hi,
I am new to roku.i am using videoscreen.I want to display srt subtitles.I gave the url to my dropbox public folder.But still not getting.Caption settings are on in my roku device.Any help?

port = CreateObject("roMessagePort")
screen = CreateObject("roVideoScreen")
screen.SetMessagePort(port)

screen.SetPositionNotificationPeriod(3)
metaData={
Stream: { url: "http://video.ted.com/talks/podcast/JeffHan_2006_480.mp4" }
StreamFormat: "mp4"
SubtitleUrl:"https://dl.dropboxusercontent.com/u/59357079/Game.of.Thrones.S04E10.HDTV.x264-KILLERS.srt"
}
screen.ShowSubtitle(true)
screen.SetContent(metaData)
screen.Show()
0 Kudos
6 Replies
uarlive
Level 7

Re: srt subtitle problem

Try using a subtitle url without the ssl and see what happens.
0 Kudos
salman23
Level 7

Re: srt subtitle problem

"uarlive" wrote:
Try using a subtitle url without the ssl and see what happens.

thank you so much @uarlive.Now it is working.But still i am wondering how it happens when the ssl is removed?
0 Kudos
uarlive
Level 7

Re: srt subtitle problem

SSL requires you to put a certificate in your zip file package. This should give you a better insight.

http://sdkdocs.roku.com/display/sdkdoc/ifHttpAgent
0 Kudos
salman23
Level 7

Re: srt subtitle problem

"uarlive" wrote:
SSL requires you to put a certificate in your zip file package. This should give you a better insight.

http://sdkdocs.roku.com/display/sdkdoc/ifHttpAgent


How can i create a certificate.I am using windows machine.That document is not clear for me.Can u explain it in a simplified manner?
0 Kudos
TheEndless
Level 7

Re: srt subtitle problem

"salman23" wrote:
"uarlive" wrote:
SSL requires you to put a certificate in your zip file package. This should give you a better insight.

http://sdkdocs.roku.com/display/sdkdoc/ifHttpAgent


How can i create a certificate.I am using windows machine.That document is not clear for me.Can u explain it in a simplified manner?

You shouldn't need to include your own cert unless you're using a custom one. If not, then you can use the one available in common:/.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
salman23
Level 7

Re: srt subtitle problem

Thanks a lot.I have one more problem.During navigation from one page to another and coming back to the previous page,the controls(for eg:buttons) in the page is not working.Can u help me please?
0 Kudos