summaryrefslogtreecommitdiffstats
path: root/src/mpris.c
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-02-20 20:31:04 +0100
committerLouis Burda <quent.burda@gmail.com>2022-02-20 20:31:04 +0100
commitee99eca5f9608d2b122555483cc413f49ef0399c (patch)
tree0d8ffd5cf59ccb2f13ce3b1b47cf44a4caed66ba /src/mpris.c
parent5d62ca335a60f9e762fd4f63f7c0258157328c0b (diff)
downloadtmus-ee99eca5f9608d2b122555483cc413f49ef0399c.tar.gz
tmus-ee99eca5f9608d2b122555483cc413f49ef0399c.zip
Added MPRIS pause and play event handling
Diffstat (limited to 'src/mpris.c')
-rw-r--r--src/mpris.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mpris.c b/src/mpris.c
index 6d9db1b..936900e 100644
--- a/src/mpris.c
+++ b/src/mpris.c
@@ -137,6 +137,10 @@ dbus_update(void)
log_info("MPRIS: Method %s\n", method);
if (!strcmp(method, "PlayPause")) {
player_toggle_pause();
+ } else if (!strcmp(method, "Pause")) {
+ player_pause();
+ } else if (!strcmp(method, "Play")) {
+ player_play();
} else if (!strcmp(method, "Next")) {
player_next();
} else if (!strcmp(method, "Previous")) {