Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events for pause/resume playback, or a 'poll' type event that fires periodically. #712

Open
nneul opened this issue Mar 22, 2021 · 0 comments

Comments

@nneul
Copy link

nneul commented Mar 22, 2021

I'm wanting to have an event to communicate externally (dashboard/toolbar/etc.) that music/stream is actively playing. This is independent of song start/stop.

Would like to see an event transmitted for 'pause' and 'resume' - or 'audio-start', 'audio-stop'.

Alternatively - a "songactive" event that fires regularly (every 15-30 seconds or something) while a song is playing. (Since this would be a significant change in behavior, would probably suggest having a 'status_command' setting along with 'status_interval'.) If you do it as separate command, consider json on stdin.

I'm unsure on whether those events should be fired in between songs though.

Key piece is - right now, if I start playback, and hit pause, there is no indication in events that pianobar is no longer active, no matter how long it sites.

Another possibility, particularly if you do single line json: event_stream_command, event_stream_interval -- and have it keep a pipe open to that external command, sending one event per line instead of one command invocation per event.

@PromyLOPh PromyLOPh changed the title Feature Request - events for pause/resume playback, or a 'poll' type event that fires periodically. Events for pause/resume playback, or a 'poll' type event that fires periodically. Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants