mpris: Get can_seek information from peer
authorJens Georg <jensg@openismus.com>
Mon, 7 Oct 2013 15:16:02 +0000 (17:16 +0200)
committerJens Georg <jensg@openismus.com>
Mon, 7 Oct 2013 15:16:02 +0000 (17:16 +0200)
src/plugins/mpris/rygel-mpris-interfaces.vala
src/plugins/mpris/rygel-mpris-player.vala

index 42ea269..7be0353 100644 (file)
@@ -42,6 +42,7 @@ public interface Rygel.MPRIS.MediaPlayer.PlayerProxy : DBusProxy,
 
     public abstract double volume { get; set; }
     public abstract int64 position { get; }
+    public abstract bool can_seek { get; }
     public abstract HashTable<string,Variant> metadata { owned get; }
 
     public abstract void pause () throws DBusError;
index e548c45..ef1914e 100644 (file)
@@ -120,7 +120,11 @@ public class Rygel.MPRIS.Player : GLib.Object, Rygel.MediaPlayer {
     public string? metadata { owned get; set; }
     public string? content_features { owned get; set; }
 
-    public bool can_seek { get { return true; } }
+    public bool can_seek {
+        get {
+            return this.actual_player.can_seek;
+        }
+    }
 
     public double volume {
         get {