Serranya / deadbeef-mpris2-plugin

A rewrite of the seemingly orphaned deadbeef-mpris-plugin originally written by HuangCongyu
GNU General Public License v2.0
65 stars 8 forks source link

I can press the play/pause button on the keyboard to pause the music, but can't play it. #29

Closed JulianLai closed 7 years ago

JulianLai commented 7 years ago

I installed it through the AUR.

Serranya commented 7 years ago

Can you give me the output of dbus-monitor when you try to unpause the music?

JulianLai commented 7 years ago
signal time=1508247924.806075 sender=org.freedesktop.DBus -> destination=:1.76 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired
   string ":1.76"
signal time=1508247924.806128 sender=org.freedesktop.DBus -> destination=:1.76 serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameLost
   string ":1.76"
method call time=1508247927.325679 sender=:1.32 -> destination=org.freedesktop.DBus serial=282 path=/; interface=org.freedesktop.DBus; member=ListNames
method return time=1508247927.325708 sender=org.freedesktop.DBus -> destination=:1.32 serial=61 reply_serial=282
   array [
      string "org.freedesktop.DBus"
      string "org.freedesktop.Notifications"
      string "com.deepin.daemon.Keybinding"
      string "com.deepin.daemon.SessionWatcher"
      string ":1.7"
      string ":1.8"
      string ":1.9"
      string "com.deepin.dde.desktop"
      string "org.gnome.Mutter.DisplayConfig"
      string "com.deepin.daemon.Miracast"
      string "org.freedesktop.systemd1"
      string "org.gnome.Mutter.IdleMonitor"
      string "org.fcitx.Fcitx"
      string "com.deepin.daemon.Display"
      string "org.gtk.vfs.Daemon"
      string "org.pulseaudio.Server"
      string "com.deepin.daemon.Power"
      string "com.deepin.terminal"
      string "com.deepin.dde.Dock"
      string "org.manjaro.pamac.tray"
      string ":1.60"
      string "com.deepin.dde.daemon.Launcher"
      string ":1.61"
      string "org.gnome.GConf"
      string ":1.62"
      string ":1.40"
      string ":1.63"
      string ":1.41"
      string "org.a11y.Bus"
      string "org.gtk.vfs.UDisks2VolumeMonitor"
      string ":1.64"
      string ":1.42"
      string ":1.20"
      string ":1.65"
      string ":1.43"
      string ":1.66"
      string ":1.44"
      string "org.gtk.vfs.mountpoint_835"
      string ":1.22"
      string ":1.67"
      string ":1.45"
      string ":1.23"
      string "com.deepin.dde.ControlCenter"
      string ":1.46"
      string ":1.24"
      string ":1.47"
      string "com.deepin.wm_switcher"
      string ":1.25"
      string ":1.26"
      string "com.deepin.daemon.Audio"
      string ":1.27"
      string ":1.28"
      string "com.deepin.daemon.Appearance"
      string "ca.desrt.dconf"
      string "com.deepin.dde.TrayManager"
      string ":1.29"
      string "org.freedesktop.ReserveDevice1.Audio0"
      string "org.freedesktop.ScreenSaver"
      string "com.deepin.dde.daemon.Dock"
      string "com.deepin.daemon.Zone"
      string "com.deepin.wm"
      string "com.deepin.dde.osd"
      string "com.deepin.SessionManager"
      string "org.ayatana.bamf"
      string "org.freedesktop.FileManager1"
      string "com.deepin.daemon.Initializer"
      string "org.kde.StatusNotifierItem-968-1"
      string "org.mpris.MediaPlayer2.DeaDBeeF"
      string "org.PulseAudio1"
      string "org.fcitx.Fcitx-0"
      string "com.deepin.daemon.InputDevices"
      string "com.deepin.daemon.Mime"
      string "com.deepin.menu"
      string ":1.70"
      string ":1.71"
      string "com.deepin.filemanager.filedialog"
      string ":1.50"
      string ":1.51"
      string ":1.74"
      string ":1.52"
      string "com.deepin.daemon.Bluetooth"
      string "org.gtk.vfs.Metadata"
      string "com.deepin.daemon.Network"
      string ":1.30"
      string ":1.75"
      string ":1.53"
      string "com.deepin.daemon.Timedate"
      string ":1.31"
      string ":1.54"
      string ":1.32"
      string ":1.55"
      string "com.deepin.daemon.SystemInfo"
      string ":1.33"
      string ":1.56"
      string ":1.57"
      string ":1.35"
      string ":1.0"
      string ":1.13"
      string ":1.58"
      string ":1.36"
      string ":1.14"
      string ":1.59"
      string ":1.2"
      string ":1.15"
      string ":1.3"
      string ":1.16"
      string "org.gtk.vfs.MTPVolumeMonitor"
      string ":1.4"
      string ":1.17"
      string "music.deadbeef.player"
      string "com.deepin.api.XMouseArea"
      string "com.deepin.daemon.Daemon"
      string ":1.5"
      string ":1.18"
      string ":1.6"
      string ":1.19"
   ]
signal time=1508247927.326209 sender=:1.50 -> destination=(null destination) serial=245 path=/StatusNotifierItem; interface=org.kde.StatusNotifierItem; member=NewIcon
signal time=1508247927.326230 sender=:1.50 -> destination=(null destination) serial=246 path=/StatusNotifierItem; interface=org.kde.StatusNotifierItem; member=NewToolTip
method call time=1508247927.326360 sender=:1.32 -> destination=org.mpris.MediaPlayer2.DeaDBeeF serial=283 path=/org/mpris/MediaPlayer2; interface=org.mpris.MediaPlayer2.Player; member=Pause
method return time=1508247927.327133 sender=:1.63 -> destination=:1.32 serial=63 reply_serial=283
signal time=1508247927.508070 sender=:1.50 -> destination=(null destination) serial=247 path=/StatusNotifierItem; interface=org.kde.StatusNotifierItem; member=NewIcon
signal time=1508247927.508108 sender=:1.50 -> destination=(null destination) serial=248 path=/StatusNotifierItem; interface=org.kde.StatusNotifierItem; member=NewToolTip
method call time=1508247928.486049 sender=:1.9 -> destination=org.freedesktop.DBus serial=151 path=/; interface=org.freedesktop.DBus; member=ListNames
method return time=1508247928.486085 sender=org.freedesktop.DBus -> destination=:1.9 serial=98 reply_serial=151
   array [
      string "org.freedesktop.DBus"
      string "org.freedesktop.Notifications"
      string "com.deepin.daemon.Keybinding"
      string "com.deepin.daemon.SessionWatcher"
      string ":1.7"
      string ":1.8"
      string ":1.9"
      string "com.deepin.dde.desktop"
      string "org.gnome.Mutter.DisplayConfig"
      string "com.deepin.daemon.Miracast"
      string "org.freedesktop.systemd1"
      string "org.gnome.Mutter.IdleMonitor"
      string "org.fcitx.Fcitx"
      string "com.deepin.daemon.Display"
      string "org.gtk.vfs.Daemon"
      string "org.pulseaudio.Server"
      string "com.deepin.daemon.Power"
      string "com.deepin.terminal"
      string "com.deepin.dde.Dock"
      string "org.manjaro.pamac.tray"
      string ":1.60"
      string "com.deepin.dde.daemon.Launcher"
      string ":1.61"
      string "org.gnome.GConf"
      string ":1.62"
      string ":1.40"
      string ":1.63"
      string ":1.41"
      string "org.a11y.Bus"
      string "org.gtk.vfs.UDisks2VolumeMonitor"
      string ":1.64"
      string ":1.42"
      string ":1.20"
      string ":1.65"
      string ":1.43"
      string ":1.66"
      string ":1.44"
      string "org.gtk.vfs.mountpoint_835"
      string ":1.22"
      string ":1.67"
      string ":1.45"
      string ":1.23"
      string "com.deepin.dde.ControlCenter"
      string ":1.46"
      string ":1.24"
      string ":1.47"
      string "com.deepin.wm_switcher"
      string ":1.25"
      string ":1.26"
      string "com.deepin.daemon.Audio"
      string ":1.27"
      string ":1.28"
      string "com.deepin.daemon.Appearance"
      string "ca.desrt.dconf"
      string "com.deepin.dde.TrayManager"
      string ":1.29"
      string "org.freedesktop.ReserveDevice1.Audio0"
      string "org.freedesktop.ScreenSaver"
      string "com.deepin.dde.daemon.Dock"
      string "com.deepin.daemon.Zone"
      string "com.deepin.wm"
      string "com.deepin.dde.osd"
      string "com.deepin.SessionManager"
      string "org.ayatana.bamf"
      string "org.freedesktop.FileManager1"
      string "com.deepin.daemon.Initializer"
      string "org.kde.StatusNotifierItem-968-1"
      string "org.mpris.MediaPlayer2.DeaDBeeF"
      string "org.PulseAudio1"
      string "org.fcitx.Fcitx-0"
      string "com.deepin.daemon.InputDevices"
      string "com.deepin.daemon.Mime"
      string "com.deepin.menu"
      string ":1.70"
      string ":1.71"
      string "com.deepin.filemanager.filedialog"
      string ":1.50"
      string ":1.51"
      string ":1.74"
      string ":1.52"
      string "com.deepin.daemon.Bluetooth"
      string "org.gtk.vfs.Metadata"
      string "com.deepin.daemon.Network"
      string ":1.30"
      string ":1.75"
      string ":1.53"
      string "com.deepin.daemon.Timedate"
      string ":1.31"
      string ":1.54"
      string ":1.32"
      string ":1.55"
      string "com.deepin.daemon.SystemInfo"
      string ":1.33"
      string ":1.56"
      string ":1.57"
      string ":1.35"
      string ":1.0"
      string ":1.13"
      string ":1.58"
      string ":1.36"
      string ":1.14"
      string ":1.59"
      string ":1.2"
      string ":1.15"
      string ":1.3"
      string ":1.16"
      string "org.gtk.vfs.MTPVolumeMonitor"
      string ":1.4"
      string ":1.17"
      string "music.deadbeef.player"
      string "com.deepin.api.XMouseArea"
      string "com.deepin.daemon.Daemon"
      string ":1.5"
      string ":1.18"
      string ":1.6"
      string ":1.19"
   ]
method call time=1508247928.486796 sender=:1.9 -> destination=org.freedesktop.DBus serial=152 path=/; interface=org.freedesktop.DBus; member=ListNames
method return time=1508247928.486825 sender=org.freedesktop.DBus -> destination=:1.9 serial=99 reply_serial=152
   array [
      string "org.freedesktop.DBus"
      string "org.freedesktop.Notifications"
      string "com.deepin.daemon.Keybinding"
      string "com.deepin.daemon.SessionWatcher"
      string ":1.7"
      string ":1.8"
      string ":1.9"
      string "com.deepin.dde.desktop"
      string "org.gnome.Mutter.DisplayConfig"
      string "com.deepin.daemon.Miracast"
      string "org.freedesktop.systemd1"
      string "org.gnome.Mutter.IdleMonitor"
      string "org.fcitx.Fcitx"
      string "com.deepin.daemon.Display"
      string "org.gtk.vfs.Daemon"
      string "org.pulseaudio.Server"
      string "com.deepin.daemon.Power"
      string "com.deepin.terminal"
      string "com.deepin.dde.Dock"
      string "org.manjaro.pamac.tray"
      string ":1.60"
      string "com.deepin.dde.daemon.Launcher"
      string ":1.61"
      string "org.gnome.GConf"
      string ":1.62"
      string ":1.40"
      string ":1.63"
      string ":1.41"
      string "org.a11y.Bus"
      string "org.gtk.vfs.UDisks2VolumeMonitor"
      string ":1.64"
      string ":1.42"
      string ":1.20"
      string ":1.65"
      string ":1.43"
      string ":1.66"
      string ":1.44"
      string "org.gtk.vfs.mountpoint_835"
      string ":1.22"
      string ":1.67"
      string ":1.45"
      string ":1.23"
      string "com.deepin.dde.ControlCenter"
      string ":1.46"
      string ":1.24"
      string ":1.47"
      string "com.deepin.wm_switcher"
      string ":1.25"
      string ":1.26"
      string "com.deepin.daemon.Audio"
      string ":1.27"
      string ":1.28"
      string "com.deepin.daemon.Appearance"
      string "ca.desrt.dconf"
      string "com.deepin.dde.TrayManager"
      string ":1.29"
      string "org.freedesktop.ReserveDevice1.Audio0"
      string "org.freedesktop.ScreenSaver"
      string "com.deepin.dde.daemon.Dock"
      string "com.deepin.daemon.Zone"
      string "com.deepin.wm"
      string "com.deepin.dde.osd"
      string "com.deepin.SessionManager"
      string "org.ayatana.bamf"
      string "org.freedesktop.FileManager1"
      string "com.deepin.daemon.Initializer"
      string "org.kde.StatusNotifierItem-968-1"
      string "org.mpris.MediaPlayer2.DeaDBeeF"
      string "org.PulseAudio1"
      string "org.fcitx.Fcitx-0"
      string "com.deepin.daemon.InputDevices"
      string "com.deepin.daemon.Mime"
      string "com.deepin.menu"
      string ":1.70"
      string ":1.71"
      string "com.deepin.filemanager.filedialog"
      string ":1.50"
      string ":1.51"
      string ":1.74"
      string ":1.52"
      string "com.deepin.daemon.Bluetooth"
      string "org.gtk.vfs.Metadata"
      string "com.deepin.daemon.Network"
      string ":1.30"
      string ":1.75"
      string ":1.53"
      string "com.deepin.daemon.Timedate"
      string ":1.31"
      string ":1.54"
      string ":1.32"
      string ":1.55"
      string "com.deepin.daemon.SystemInfo"
      string ":1.33"
      string ":1.56"
      string ":1.57"
      string ":1.35"
      string ":1.0"
      string ":1.13"
      string ":1.58"
      string ":1.36"
      string ":1.14"
      string ":1.59"
      string ":1.2"
      string ":1.15"
      string ":1.3"
      string ":1.16"
      string "org.gtk.vfs.MTPVolumeMonitor"
      string ":1.4"
      string ":1.17"
      string "music.deadbeef.player"
      string "com.deepin.api.XMouseArea"
      string "com.deepin.daemon.Daemon"
      string ":1.5"
      string ":1.18"
      string ":1.6"
      string ":1.19"
   ]
saivert commented 7 years ago

From the log this calls the Pause method instead of the PlayPause method which is designed for this. Pause only pauses/unpauses but does not start playback if Deadbeef is stopped. PlayPause does however start playback if it is stopped.

This to me seems like a client bug or misconfiguration. Is it possible to remap what the Play/Pause multimedia keyboard function does?

JulianLai commented 7 years ago

The problem is gone now, I still don't know what cause the problem.