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

How to give subtile link to video node.

How can i display subtitles in video node In roku . subtitles are coming from api, how to give subtitle link to video node can you give me the example code for that. It is very helpful for me 

Thanks In Advance.
0 Kudos
2 REPLIES 2
destruk
Streaming Star

Re: How to give subtile link to video node.

https://sdkdocs.roku.com/display/sdkdoc/Video - Closed Caption Fields

That is the roku Wiki SDK site - so bookmark that and you might find it helpful to read everything.
0 Kudos
venkatareddy
Visitor

Re: How to give subtile link to video node.

I am using below code not display subtitles even pop up also when click on star button while playing video in full screen mode

videocontent = createObject("RoSGNode", "ContentNode")
            videocontent.HttpHeaders = headers
            videocontent.title = m.ContentNode_child_object.title
            videocontent.streamformat = "dash"
            subtitle_config = {
                    TrackName: “sample.srt"
                               }
            videocontent.subtitleconfig = subtitle_config
            videocontent.url = “URL”  
  m.video.control = "play"
            m.video.visible = true
            m.video.setFocus(true)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!