Using MPRIS for playback detection #113
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: WhyNotHugo/caffeine-ng#113
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
MPRIS is a D-Bus API by which multimedia applications can register themselves to handle when a user presses the "play/pause" buttons on keyboards/speakers/headphones.
In general, anything that's a media player registers via this API -- including music players and browsers.
Using the MPRIS API to determine "is there currently any media playing" sounds like a very solid solution -- definitely less guessing and false positive than using pulseaudio and peak detection.
can we close this issue?
Commit message or PR description should have included
Closes #113
for this to auto-close when the changes were merged.