[rygel] core,gst-renderer: Introducing Player interface



commit 37d7f862be0603529e94c1924b04a9e244f1448d
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Jul 31 13:07:19 2010 +0300

    core,gst-renderer: Introducing Player interface

 .../gst-renderer/rygel-gst-renderer-player.vala    |    2 +-
 src/rygel/Makefile.am                              |    1 +
 src/rygel/rygel-player.vala                        |   32 ++++++++++++++++++++
 3 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gst-renderer/rygel-gst-renderer-player.vala b/src/plugins/gst-renderer/rygel-gst-renderer-player.vala
index 17dfcef..40ff145 100644
--- a/src/plugins/gst-renderer/rygel-gst-renderer-player.vala
+++ b/src/plugins/gst-renderer/rygel-gst-renderer-player.vala
@@ -23,7 +23,7 @@
 
 using Gst;
 
-public class Rygel.GstRenderer.Player : GLib.Object {
+public class Rygel.GstRenderer.Player : GLib.Object, Rygel.Player {
     private static Player player;
 
     private dynamic Element playbin;
diff --git a/src/rygel/Makefile.am b/src/rygel/Makefile.am
index 43b22f3..8a747d3 100644
--- a/src/rygel/Makefile.am
+++ b/src/rygel/Makefile.am
@@ -106,6 +106,7 @@ VAPI_SOURCE_FILES = rygel-configuration.vala \
 		    rygel-gst-utils.vala \
 		    rygel-media-receiver-registrar.vala \
 		    rygel-log-handler.vala \
+		    rygel-player.vala \
 		    rygel-changelog.vala
 
 rygel_VALAFLAGS = \
diff --git a/src/rygel/rygel-player.vala b/src/rygel/rygel-player.vala
new file mode 100644
index 0000000..1033e45
--- /dev/null
+++ b/src/rygel/rygel-player.vala
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2008 OpenedHand Ltd.
+ * Copyright (C) 2009 Nokia Corporation.
+ *
+ * Author: Jorn Baayen <jorn openedhand com>
+ *         Zeeshan Ali (Khattak) <zeeshanak gnome org>
+ *                               <zeeshan ali nokia com>
+ *
+ * Rygel is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Rygel is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+public interface Rygel.Player : GLib.Object {
+    public abstract string playback_state { get; set; }
+    public abstract string uri { get; set; }
+    public abstract double volume { get; set; }
+    public abstract string duration { owned get; }
+    public abstract string position { owned get; }
+
+    public abstract bool seek (string time);
+}



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