[rygel] renderer: implement PlaybackStorageMedium variable



commit 01de181d00b2b7496122a6b17d1b81b4d8cc3439
Author: Jussi Kukkonen <jussi kukkonen intel com>
Date:   Sat Nov 16 19:29:52 2013 +0200

    renderer: implement PlaybackStorageMedium variable
    
    PlaybackStorageMedium should be "NETWORK" when AVTransportURI
    refers to a resource received from the UPnP network. It should be
    NONE if AVTransportURI is not set.
    
    Also fix the LastChange value of PossiblePlaybackStorageMedium.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712517

 src/librygel-renderer/rygel-av-transport.vala |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/src/librygel-renderer/rygel-av-transport.vala b/src/librygel-renderer/rygel-av-transport.vala
index a423067..35c3dbb 100644
--- a/src/librygel-renderer/rygel-av-transport.vala
+++ b/src/librygel-renderer/rygel-av-transport.vala
@@ -81,6 +81,16 @@ internal class Rygel.AVTransport : Service {
         }
     }
 
+    public string playback_medium {
+        get {
+            if (this.controller.uri == "") {
+                return "None";
+            } else {
+                return "Network";
+            }
+        }
+    }
+
     public string speed {
         owned get {
             return this.player.playback_speed;
@@ -181,9 +191,9 @@ internal class Rygel.AVTransport : Service {
         log.log ("CurrentTransportActions",
                  this.controller.current_transport_actions);
         log.log ("TransportStatus",              this.status);
-        log.log ("PlaybackStorageMedium",        "NOT_IMPLEMENTED");
+        log.log ("PlaybackStorageMedium",        this.playback_medium);
         log.log ("RecordStorageMedium",          "NOT_IMPLEMENTED");
-        log.log ("PossiblePlaybackStorageMedia", "NOT_IMPLEMENTED");
+        log.log ("PossiblePlaybackStorageMedia", "None,Network");
         log.log ("PossibleRecordStorageMedia",   "NOT_IMPLEMENTED");
         log.log ("CurrentPlayMode",              this.mode);
         log.log ("TransportPlaySpeed",           this.player.playback_speed);
@@ -377,7 +387,7 @@ internal class Rygel.AVTransport : Service {
                         "NOT_IMPLEMENTED",
                     "PlayMedium",
                         typeof (string),
-                        "NOT_IMPLEMENTED",
+                        this.playback_medium,
                     "RecordMedium",
                         typeof (string),
                         "NOT_IMPLEMENTED",
@@ -426,7 +436,7 @@ internal class Rygel.AVTransport : Service {
                         "NOT_IMPLEMENTED",
                     "PlayMedium",
                         typeof (string),
-                        "NOT_IMPLEMENTED",
+                        this.playback_medium,
                     "RecordMedium",
                         typeof (string),
                         "NOT_IMPLEMENTED",


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