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

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 6
uarlive
Visitor

Re: srt subtitle problem

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

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
Visitor

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
Visitor

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
Channel Surfer

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
Visitor

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
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.