mercredi 31 décembre 2014

How to PlayPause with dbus-send


How do I send a PlayPause() command to the whaterver mpris MediaPlayer2 instance is currently playing? I imagine there is some command for dbus-send. It's probably similar to this one which only works with Spotify:



dbus-send --print-reply \
--dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 \
org.mpris.MediaPlayer2.Player.PlayPause


Aucun commentaire:

Enregistrer un commentaire