Forum Discussion

ssaguiar's avatar
ssaguiar
Streaming Star
3 years ago
Solved

How to change from one scene to another?

Hi to all I wish to know if somebody can answer one question, which seems simple but I am not getting to work fine. I am working in a channel project for a iptv provider. There are 2 scenes (scree...
  • renojim's avatar
    3 years ago

    In general you only want one roScreen that creates one scene with multiple screens (not to be confused with multiple roScreens).  So you'd have a login screen and a home screen under one scene and then change the visibility of those screens as appropriate in your code.

    <?xml version="1.0" encoding="utf-8" ?>
    <component name="home_scene" extends="Scene" initialFocus="login_screen">
       <script type="text/brightscript" uri="pkg:/components/home_scene.brs" />
       <children>
          <login_screen
             id="login_screen"
             visible="true"
             translation="[0,0]"
          />
          <home_screen
             id="home_screen"
             visible="false"
             translation="[0,0]"
          />
       </children>
    </component>

     

    You should note that IPTV channels/apps are highly frowned upon by Roku if the provider can't prove he has the rights to whatever services he's providing.  If this is in any way not legitimate I'd stay away from it if I were you.