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: 
ionatan
Roku Guru

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
4 REPLIES 4
RokuNB
Roku Guru

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
Roku Guru

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
Roku Guru

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
ramoneariel
Channel Surfer

Re: Reload SceneGraph Channel

How can I do this?
"close roRsgScreen and re-open it from main()"
Beacuse all my attempts close the app.
I used launch/restart with ECP, but in version 12 it was deprecated, This was a very good option to not rerender everything and apply new settings.
Can you post some code?

0 Kudos