[gnome-music/wip/merge: 48/343] player: Add MediaPlayer2PlayerIface



commit 8c15c89207051ec0871ffbb71857c39d80a5e383
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Sun Jul 14 00:51:50 2013 +0800

    player: Add MediaPlayer2PlayerIface

 gnome-music/player.py |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)
---
diff --git a/gnome-music/player.py b/gnome-music/player.py
index 146f975..3e5c2ee 100644
--- a/gnome-music/player.py
+++ b/gnome-music/player.py
@@ -47,6 +47,46 @@ MediaPlayer2PlayerIface = """
 """
 
 
+MediaPlayer2PlayerIface = """
+<interface name='org.mpris.MediaPlayer2.Player'>
+  <method name='Next'/>
+  <method name='Previous'/>
+  <method name='Pause'/>
+  <method name='PlayPause'/>
+  <method name='Stop'/>
+  <method name='Play'/>
+  <method name='Seek'>
+    <arg direction='in' name='Offset' type='x'/>
+  </method>
+  <method name='SetPosition'>
+    <arg direction='in' name='TrackId' type='o'/>
+    <arg direction='in' name='Position' type='x'/>
+  </method>
+  <method name='OpenUri'>
+    <arg direction='in' name='Uri' type='s'/>
+  </method>
+  <signal name='Seeked'>
+    <arg name='Position' type='x'/>
+  </signal>
+  <property name='PlaybackStatus' type='s' access='read'/>
+  <property name='LoopStatus' type='s' access='readwrite'/>
+  <property name='Rate' type='d' access='readwrite'/>
+  <property name='Shuffle' type='b' access='readwrite'/>
+  <property name='Metadata' type='a{sv}' access='read'/>
+  <property name='Volume' type='d' access='readwrite'/>
+  <property name='Position' type='x' access='read'/>
+  <property name='MinimumRate' type='d' access='read'/>
+  <property name='MaximumRate' type='d' access='read'/>
+  <property name='CanGoNext' type='b' access='read'/>
+  <property name='CanGoPrevious' 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='CanControl' type='b' access='read'/>
+</interface>
+"""
+
+
 class RepeatType:
     NONE = 0
     SONG = 1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]