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: 
jbrave
Channel Surfer

launch params - what app is currently running

If we send launch params to the roku, it will relaunch the app, even if it is already running. What if I want to know if I want to send the launch command, or just send some parameters to the currently running app, is there a way to tell if something is running?

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
7 REPLIES 7
renojim
Community Streaming Expert

Re: launch params - what app is currently running

I believe that's what the new socket components are for.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
jbrave
Channel Surfer

Re: launch params - what app is currently running

hmm - the socket example app crashes on load...
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
renojim
Community Streaming Expert

Re: launch params - what app is currently running

I haven't tried it and to be honest I know very little about sockets. I just thought they were a way to connect to your channel while it's running.

Edit: Ok, I tried it and it looks like the firmware and documentation aren't ready for prime time. If the server will bind to a port, which happened like once out of a dozen tries, SetMessagePort isn't a valid function (and neither is GetID, by the way). Looks like we'll have to wait on this one.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
kbenson
Visitor

Re: launch params - what app is currently running

My limited examination turned out the same way. I think the interface components available may actually differ depending on how it's created, but I haven't had a chance to revisit it.
-- GandK Labs
Check out Reversi! in the channel store!
0 Kudos
renojim
Community Streaming Expert

Re: launch params - what app is currently running

I thought the same thing, but I don't know of any other components that behave that way.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
EnTerr
Roku Guru

Re: launch params - what app is currently running

"jbrave" wrote:
If we send launch params to the roku, it will relaunch the app, even if it is already running. What if I want to know if I want to send the launch command, or just send some parameters to the currently running app, is there a way to tell if something is running


Yeah, that functionality is missing in ECP. I already proposed extension here viewtopic.php?f=34&t=38144&p=249414#p249414 - but perhaps illustrate with example:

Query

GET /query/channel HTTP/1.0




Response

Content-Type:text/plain; charset=UTF-8
<... etc headers >

12


12 being Netflix - ok, we know what's running now. No channel (main menu) will return 0 or some such
0 Kudos
EnTerr
Roku Guru

Re: launch params - what app is currently running

Any attention on this, Roku*?
0 Kudos