tschak909
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2013
09:48 PM
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
-Thom
6 REPLIES 6

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2013
12:31 PM
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
-Joel
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2013
12:44 PM
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.

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2013
01:03 PM
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
The answer is: not at this time.
- Joel
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2013
04:29 PM
Re: ECP and is something playing?
"RokuJoel" wrote:
The answer is: not at this time.
So couple of requests for enhancements then:
- (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)
- (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?)
tschak909
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2013
07:09 PM
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
-Thom
erl11
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2016
06:37 PM
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.