[gnome-music/wip/jfelder/mpris-playlists-cleanup: 1/7] 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: 1/7] mpris: Add	Playlists interface to xml description
 
- Date: Wed, 29 May 2019 16:35:47 +0000 (UTC)
 
commit d3fd3af3f13ce209aaf1b1cd74a940535e22570f
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 8dcdbecc..51e0c17f 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]