Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToggleMediaPlayback ¶
ToggleMediaPlayback uses the D-Bus session bus to trigger the PlayPause method on org.mpris.MediaPlayer2.Player.
The name should be of the format org.mpris.MediaPlayer2.xxxx where xxx is the music player. For example, to send the command to Spotify: org.mpris.MediaPlayer2.spotify.
For convenience, any name passed that does not begin with org.mpris.MediaPlayer2 will have it prepended.
You can use a D-Bus explorer like D-Feet to look on your session bus and figure out the name. Search for MPRIS. The spec itself can be found here: https://specifications.freedesktop.org/mpris-spec/latest/.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.