Using MPRIS for playback detection #113

Open
opened 2 months ago by WhyNotHugo · 0 comments
WhyNotHugo commented 2 months ago (Migrated from github.com)
Owner

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.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

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