altdesktop / playerctl

🎧 mpris media player command-line controller for vlc, mpv, RhythmBox, web browsers, cmus, mpd, spotify and others.
GNU Lesser General Public License v3.0
2.43k stars 79 forks source link

playerctl doesn't recognize mpd #255

Closed Apopheosis closed 2 years ago

Apopheosis commented 2 years ago

The player I am using is mpd.

Playerctl works with spotify, but doesn't recognize mpd for some reason.

playerctl -l outputs "no players found"

dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames method return time=1635719233.142468 sender=org.freedesktop.DBus -> destination=:1.6492 serial=3 reply_serial=2 outputs:

` array [ string "org.freedesktop.DBus" string ":1.4382" string ":1.7" string "org.freedesktop.systemd1" string ":1.4530" string ":1.4420" string ":1.4423" string "org.gtk.vfs.Daemon" string ":1.0" string ":1.4424" string "org.pulseaudio.Server" string "org.PulseAudio1" string "org.mpris.MediaPlayer2.playerctld" string ":1.6492" string ":1.4381" ]

acrisci commented 2 years ago

You need the mpd mpris plugin for it to work.

Apopheosis commented 2 years ago

Thanks, it works now, but mpd-mpris now occupies the whole terminal while working. Is it possible to make it start by default when using playerctl?

acrisci commented 2 years ago

Yeah look at their documentation.