Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
ionatan
Level 7

Reload SceneGraph Channel

Hello,

How could I reload a Channel built with SceneGraph?
With old Brightscript SDK this was easy, but I'm not sure how this can be done with SceneGraph.

I've found a possible solution, by calling again init function from main Scene. That reloads Channel content, but some nodes are not closed properly. So, is there a easy way to reload the channel or main scene easily?


Thanks!
0 Kudos
3 Replies
Roku Employee
Roku Employee

Re: Reload SceneGraph Channel

It should be no more difficult than with SDK1 one. Perhaps close roRsgScreen and re-open it from main()? Alternatively you can try something brutal like ECP /launch to restart it. Many ways, really - depends what you are doing.
0 Kudos
ionatan
Level 7

Re: Reload SceneGraph Channel

Basically I want to be able to reload content into VideoPlayer Sample Channel (https://github.com/rokudev/videoplayer-channel) when a specific button is pressed on SpringBoard screen.
The main challenge is to close/reset all nodes.
0 Kudos
ionatan
Level 7

Re: Reload SceneGraph Channel

I was able to do this using the solution from this post https://forums.roku.com/viewtopic.php?t=96168#p540544
0 Kudos