venkatareddy
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2018
11:29 PM
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.
Thanks In Advance.
2 REPLIES 2
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2018
05:13 AM
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.
That is the roku Wiki SDK site - so bookmark that and you might find it helpful to read everything.
venkatareddy
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2018
05:54 AM
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)
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)