From: Jens Georg Date: Mon, 7 Oct 2013 15:16:02 +0000 (+0200) Subject: mpris: Get can_seek information from peer X-Git-Tag: RYGEL_0_21_0~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f069f107b63c354fe043dc359e6d5333ffd854d;p=profile%2Fivi%2Frygel.git mpris: Get can_seek information from peer --- diff --git a/src/plugins/mpris/rygel-mpris-interfaces.vala b/src/plugins/mpris/rygel-mpris-interfaces.vala index 42ea269..7be0353 100644 --- a/src/plugins/mpris/rygel-mpris-interfaces.vala +++ b/src/plugins/mpris/rygel-mpris-interfaces.vala @@ -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 metadata { owned get; } public abstract void pause () throws DBusError; diff --git a/src/plugins/mpris/rygel-mpris-player.vala b/src/plugins/mpris/rygel-mpris-player.vala index e548c45..ef1914e 100644 --- a/src/plugins/mpris/rygel-mpris-player.vala +++ b/src/plugins/mpris/rygel-mpris-player.vala @@ -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 {