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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reel Rookie

Pass URL as a parameter to Video node


I am able to pass URL as a parameter to roVideoScreen following this blog post:

Unfortunately roVideoScreen is deprecated and my channel will be rejected during certification if I use it.

Now I am trying to pass URL as a parameter to Video node using this example:

I tried to use to access Video node from Main function but it was unsuccessful.
Any help how to achieve this will be highly appreciated.


0 Kudos
Community Streaming Expert

Re: Pass URL as a parameter to Video node

You want to access the video node through the scene variable.  Following that example, it would be something like this:

screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
scene = screen.CreateScene("VideoExample")
video_node = scene.FindNode("exampleVideo")
videocontent = createObject("RoSGNode", "ContentNode")
videocontent.title = "Example Video"
videocontent.streamformat = "mp4"
videocontent.url = ""
video_node.content = videocontent
video_node.control = "play"
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Reel Rookie

Re: Pass URL as a parameter to Video node

It works! Thank you very much!

0 Kudos