Skip to content

Commit

Permalink
MPRIS: Implement Stop method
Browse files Browse the repository at this point in the history
Closes #316
  • Loading branch information
rafaelmardojai committed Apr 8, 2024
1 parent ba5e861 commit 8d134e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blanket/mpris.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class MPRIS(Server):
<method name="PlayPause"/>
<method name="Play"/>
<method name="Pause"/>
<method name="Stop"/>
<property name="PlaybackStatus" type="s" access="read"/>
<property name="Metadata" type="a{sv}" access="read">
</property>
Expand Down Expand Up @@ -185,6 +186,9 @@ def Play(self):
def Pause(self):
self.app.on_pause()

def Stop(self):
self.app.on_pause()

def Get(self, interface, property_name):
if property_name in [
"CanQuit",
Expand Down

0 comments on commit 8d134e4

Please sign in to comment.