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?
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.
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.
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?