Using MPRIS for playback detection #113
Open
opened 2 months ago by WhyNotHugo
·
0 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. 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.