Forum Discussion

ionatan's avatar
ionatan
Roku Guru
9 years ago

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!

4 Replies

  • 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.
    • ramoneariel's avatar
      ramoneariel
      Channel Surfer

      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?