Exposing playerctld with rygel
Hi,
I'm trying to expose playerctld using Rygel over my local network. Other MPRIS players such as VLC or Firefox are picked up fine, but not playerctld. In Rygel's log I see the following entry:
MPRIS interface at org.mpris.MediaPlayer2.playerctld is read-only. Ignoring.
Did a bit of digging around here and there and from what I gathered this seems to be due to playerctld having CanControl set to false. Couldn't figure out how to change this.
Did a bit more testing with rygel. Turns out that it actively ignores mpris clients that when first discovered had CanControl return false. If these players become controllable after being discovered they still get ignored. Rygel assumes that CanControl is immutable, which is what's recommended by the official freedesktop docs.
So in a nutshell what happens here is that rygel will ignore playerctld unless playerctld was currently playing.
Would it make sense to arbitrarily set CanControl to true no matter if a player is picked up by playerctld?