hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
841 stars 204 forks source link

Add MPRIS D-Bus interface for state notification #222

Closed mill1000 closed 8 months ago

mill1000 commented 3 years ago

This PR adds a minimal MPRIS implementation on the system D-Bus. Other applications can monitor the D-Bus for state changes as desired.

One possible application is to monitor for playback status changes and trigger external events. e.g. turning on or off amplifiers when playback starts & stops. By using the MPRIS interface, as opposed to a proprietary interface, we offer compatibility with other streaming systems such as shairport-sync, spotifyd.

This implementation does not include any of the control capability. It's purpose is solely for notification.

mill1000 commented 8 months ago

Withdrawn as the implementation is rather incomplete.