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: 
rjbrown
Visitor

Launching another channel and video (possibly) via the store

We have several channels, and each of them needs to be able to launch other ones of our channel, and play a video in it.

This works great if the channel is already installed. We simply ping the following url

http://IPADDRESS:8060/launch/CHANNELID?videoid=VIDEOID

where CHANNELID is the numerical id of the other channel, and VIDEOID is whatever info we need to start the correct video.

If the channel isn't installed yet, we do the following:

http://IPADDRESS:8060/launch/11?contentID=CHANNELID

That will send them to the store (which has the channel id of 11), and prompt them to install the correct channel.

The problem is how to get the video id into the channel the first time they run it. Is this possible?
0 Kudos
2 REPLIES 2
gonzotek
Visitor

Re: Launching another channel and video (possibly) via the s

"rjbrown" wrote:
We have several channels, and each of them needs to be able to launch other ones of our channel, and play a video in it.

This works great if the channel is already installed. We simply ping the following url

http://IPADDRESS:8060/launch/CHANNELID?videoid=VIDEOID

where CHANNELID is the numerical id of the other channel, and VIDEOID is whatever info we need to start the correct video.

If the channel isn't installed yet, we do the following:

http://IPADDRESS:8060/launch/11?contentID=CHANNELID

That will send them to the store (which has the channel id of 11), and prompt them to install the correct channel.

The problem is how to get the video id into the channel the first time they run it. Is this possible?

Are the channels are signed with the same developer key? If so, you should be able to store a variable with the video id into the registry from the first channel and then check for it upon launch in the second channel. If found, start playing that video and null out the registry entry (so it doesn't start playing the same video every subsequent launch). If not found, proceed as usual.

If they don't have the same developer key, your next option is to store the device id and video id in a temporary table on a server from the first channel, then look it up from the second channel in order to start playback. You'd want to only keep the entries around a short period of time, so the table doesn't grow to outrageous proportions.
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
rjbrown
Visitor

Re: Launching another channel and video (possibly) via the s

Yeah I was thinking about the server side approach, which is probably going to be the best bet The registry idea might be a good option.

Thanks much.
0 Kudos