-
Notifications
You must be signed in to change notification settings - Fork 512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with playerctl, issue with MPRIS properties #971
Comments
This should be probably be an issue in https://github.com/dbusjs/mpris-service since it's the library we use to interact with the MPRIS service |
I guess, I'll open an issue over there. What is the version of the library used in 1.19.0? |
Line 119 in 3a822f6
|
probably duplicated: |
The rest of the MPRIS service works fine though and is displayed correctly in the MPRIS control panel of my system. From what I can tell, it's only the "GetAll" method that's broken. |
I raised a dbusjs/mpris-service#52 to fix this. Tested locally (Ubuntu 22.10) with playerctl and youtube-music (built from source) and works for me. |
That PR will sadly probably never get merged as that repo is unmaintained |
General Information:
Problem Description:
The application can't be used with playerctl, since for any command I've tried, playerctl outputs
No player could handle this command
.Information I have found out about the issue:
Using
dbus-monitor
as well as my system's MPRIS control panel and playerctl, I have collected more information about the issue.The system's MPRIS control uses the
Get
method of theorg.freedesktop.DBus.Properties
interface to get the different DBus properties, likeCanSeek
for example.playerctl though, uses the
GetAll
method of the same interface to directly get all properties.I tested the methods and can see, that the
Get
methods works fine and returns the value of the specified method. But theGetAll
method doesn't work at all for youtube-music and returns the following error, which I think means, that there is a bug in youtube-music or the dbus-next module:I think(not sure), since playerctl uses the
GetAll
method, which errors out, it decides, that the service can't handle the commands and exits.Here are the direct
dbus-monitor
logs of both tries:dbus-monitor log for system MPRIS control panel
``` signal time=1673706705.490496 sender=org.freedesktop.DBus -> destination=:1.1754 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.1754" signal time=1673706705.490595 sender=org.freedesktop.DBus -> destination=:1.1754 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost string ":1.1754" method call time=1673706707.996832 sender=:1.52 -> destination=:1.1492 serial=5748 path=/org/mpris/MediaPlayer2; interface=org.mpris.MediaPlayer2.Player; member=PlayPause method call time=1673706707.998371 sender=:1.74 -> destination=org.mpris.MediaPlayer2.youtube-music serial=532 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=Get string "org.mpris.MediaPlayer2.Player" string "CanSeek" method call time=1673706707.999396 sender=:1.74 -> destination=org.mpris.MediaPlayer2.youtube-music serial=533 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=Get string "org.mpris.MediaPlayer2.Player" string "Position" method call time=1673706708.018675 sender=:1.52 -> destination=:1.1492 serial=5749 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=Get string "org.mpris.MediaPlayer2.Player" string "CanSeek" method call time=1673706708.020403 sender=:1.52 -> destination=:1.1492 serial=5750 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=Get string "org.mpris.MediaPlayer2.Player" string "Position" ```
dbus-monitor log for playerctl
``` signal time=1673706711.203084 sender=org.freedesktop.DBus -> destination=:1.1757 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired string ":1.1757" signal time=1673706711.203142 sender=org.freedesktop.DBus -> destination=:1.1757 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost string ":1.1757" method call time=1673706712.950700 sender=:1.1758 -> destination=:1.1492 serial=17 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=GetAll string "org.mpris.MediaPlayer2.Player" ```
The text was updated successfully, but these errors were encountered: