Skip to content
This repository

Feature Request: Ability to check status (playing or paused) #139

Closed
sabatorg opened this Issue July 12, 2011 · 5 comments

2 participants

sabatorg PromyLOPh
sabatorg

Pianobar has a very extensive set of control mechanisms with fifo and EVENTCMD. The problem is that there is not a way to identify if pianobar is currently playing or paused and the fifo command to pause/play is the same.

Please provide an EVENTCMD for paused/resumed or provide a fifo command to pause and a different one to play.

This will be useful for pausing after inactivity (screensaver) etc.

PromyLOPh
Owner

See #85 (comment) and axelson/pianobar.

sabatorg

So if I understand correctly... The EVENTCMD is used for displaying xmlrpc calls only? I understand wanting to keep the key bindings down so so having a different key-binding for pause and one for play is out. I would have guessed that pausing/resuming would be a xmlrpc call though? Does pause and resume only happen on the client side?

PromyLOPh
Owner
PromyLOPh
Owner
PromyLOPh PromyLOPh closed this July 20, 2011
PromyLOPh
Owner

Here's a diff that adds the requested feature: https://gist.github.com/1094665

There is just one problem: You can't tell which state pianobar is currently in from watching the two new events. You'd have to check all the other events (station change, next song, ...) and "guess" whether that event changed the pause state. (I could add a new pause=1/0 field to the eventcmd stream, but it really boils down to one thing:)

The only way to fix this is to turn pianobar into a daemon with a RPC interface, but I already explained why this won't happen. => Won't fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.