Using MPRIS for playback detection #113

Closed
opened 2022-06-21 09:34:38 +00:00 by WhyNotHugo · 2 comments
WhyNotHugo commented 2022-06-21 09:34:38 +00:00 (Migrated from github.com)

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.

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?

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.

Commit message or PR description should have included `Closes #113` for this to auto-close when the changes were merged.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: WhyNotHugo/caffeine-ng#113
There is no content yet.