tschak909
Visitor

ECP and is something playing?

Hello. I am improving our integration code for our smart home platform, LinuxMCE. Is there any way to ask the Roku device if something is playing, so that I can update internal state appropriately? I don't need to know WHAT'S playing, but rather if something IS, so that I can send play/pause appropriately when phone calls happen in the home.

-Thom
Tags (1)
0 Kudos
6 REPLIES 6
RokuJoel
Binge Watcher

Re: ECP and is something playing?

You could implement a simple webserver based on the example in the SDK and use that to return information to the requesting device.

-Joel
Tags (1)
0 Kudos
EnTerr
Roku Guru

Re: ECP and is something playing?

"RokuJoel" wrote:
You could implement a simple webserver based on the example in the SDK and use that to return information to the requesting device.

RokuJoel,
The question is how to query Roku player if something is playing, regardless of the "channel". We have no access to modify Netflix, Pandora, Amazon etc, so your answer is not relevant.
Tags (1)
0 Kudos
RokuJoel
Binge Watcher

Re: ECP and is something playing?

Hmm, I don't see that level of specificity in the original post.

The answer is: not at this time.

- Joel
Tags (1)
0 Kudos
EnTerr
Roku Guru

Re: ECP and is something playing?

"RokuJoel" wrote:
The answer is: not at this time.

So couple of requests for enhancements then:
  1. (my request) Provide functionality so that ECP query can return what channel# Roku is currently "tuned" to (0 if in main menu?). Presumably further detail is up to individual channels to publish (we can discuss and agree on recommended API for that)

  2. (per @tschak909 question) Consider adding functionality so that via ECP query it can be determined if video or audio is being played, no matter the channel. (now this is somewhat unclear - while if programmed in B/S, it probably is known to the system if a multimedia control is playing, it may not be so with NDK/else. Also how is pausing to be done here, presumably by shooting ECP pause and hoping the channel pauses?)
Tags (1)
0 Kudos
tschak909
Visitor

Re: ECP and is something playing?

If there was a simple way to send a discrete pause, that always paused, and ignored if it was already paused, as well as a discrete play, this would not be an issue. But I am having to work around it.

-Thom
Tags (1)
0 Kudos
erl11
Visitor

Re: ECP and is something playing?

tschak909, did you ever figure something out for this? I too would like a discrete pause for my home auto system, or even better to query the state. This way i could resume play only if i know the Roku was already playing.
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!