Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to open another channel from our Roku channel

hi I am trying to open my another channel with user click a button.

I want my other channel to load. I have no clue how this can be don. some people suggest me to do it through deeplink but all in vain. so how I can do this in Roku.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

hi you can go to another channel from your own channel but this will not load both channels parallelly. your running channel will we closed and new channel will be loaded, if channel is installed on your device it will automatically open and if it is not installed add channel screen will be open. here is code for this. (write this code in task)

m.app = CreateObject("roAppManager")
    if m.app.IsAppInstalled(m.top.AdChannelID,"") = true

       params = {contentID:""}
       m.app.LaunchApp(m.top.AdChannelID,"",params)
    else

       m.app.ShowChannelStoreSpringboard(m.top.AdChannelID)
    end if

and now run this task and assign channel id to this tasks

    m.OpenOtherChannelTask = createObject("roSGNode", "OpenOtherChannelTask")
    m.OpenOtherChannelTask.AdChannelID = m.channelID
    m.OpenOtherChannelTask.control = "run"

also do not forget to add this in your tasks xml file

<interface > 
    <field id="AdChannelID" type="string"/>
  </interface>

Hope this will help you.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading