implementing MediaSession using MPRIS

NotificationManager will now ignore MediaStyle notifications
This commit is contained in:
Julian Winkler
2024-07-15 16:39:45 +02:00
parent eddd827e27
commit b54bed4784
9 changed files with 272 additions and 14 deletions

View File

@@ -0,0 +1,25 @@
<node>
<interface name="org.mpris.MediaPlayer2.Player">
<method name="Play"/>
<method name="Pause"/>
<method name="PlayPause"/>
<method name="Next"/>
<method name="Previous"/>
<method name="Seek">
<arg name="Offset" direction="in" type="x"/>
</method>
<method name="SetPosition">
<arg name="TrackId" direction="in" type="o"/>
<arg name="Position" direction="in" type="x"/>
</method>
<property name="CanControl" type="b" access="read"/>
<property name="CanPlay" type="b" access="read"/>
<property name="CanPause" type="b" access="read"/>
<property name="CanSeek" type="b" access="read"/>
<property name="CanGoNext" type="b" access="read"/>
<property name="CanGoPrevious" type="b" access="read"/>
<property name="Metadata" type="a{sv}" access="read"/>
<property name="PlaybackStatus" type="s" access="read"/>
<property name="Position" type="x" access="read"/>
</interface>
</node>