Forum Discussion

salman23's avatar
salman23
Visitor
12 years ago

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()

6 Replies

  • Try using a subtitle url without the ssl and see what happens.
  • "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?
  • "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:/.
  • 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?