[gnome-music/wip/jfelder/mpris-playlists-cleanup: 2/8] mpris: Add Playlists interface to xml description
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/mpris-playlists-cleanup: 2/8] mpris: Add Playlists interface to xml description
- Date: Fri, 31 May 2019 19:38:54 +0000 (UTC)
commit b8ba7cf807255a8a1b82d1ca862f3a33a56ef041
Author: Jean Felder <jfelder src gnome org>
Date: Thu Mar 14 16:52:41 2019 +0100
mpris: Add Playlists interface to xml description
gnomemusic/mpris.py | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index 867dcc8c..42cfc9be 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -197,6 +197,24 @@ class MediaPlayer2Service(Server):
<property name='Tracks' type='ao' access='read'/>
<property name='CanEditTracks' type='b' access='read'/>
</interface>
+ <interface name='org.mpris.MediaPlayer2.Playlists'>
+ <method name='ActivatePlaylist'>
+ <arg direction="in" name="PlaylistId" type="o" />
+ </method>
+ <method name='GetPlaylists'>
+ <arg direction='in' name='Index' type='u' />
+ <arg direction='in' name='MaxCount' type='u' />
+ <arg direction='in' name='Order' type='s' />
+ <arg direction='in' name='ReverseOrder' type='b' />
+ <arg direction='out' name='Playlists' type='a(oss)' />
+ </method>
+ <property name='PlaylistCount' type='u' access='read' />
+ <property name='Orderings' type='as' access='read' />
+ <property name='ActivePlaylist' type='(b(oss))' access='read' />
+ <signal name='PlaylistChanged'>
+ <arg name='Playlist' type='(oss)' />
+ </signal>
+ </interface>
</node>
'''
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]