diff options
author | Jussi Kukkonen <jussi.kukkonen@intel.com> | 2013-10-22 14:05:49 +0300 |
---|---|---|
committer | Jens Georg <jensg@openismus.com> | 2013-11-10 14:53:57 +0100 |
commit | 0347a67d128438dcce66b9ae8785c543c8ef6b1b (patch) | |
tree | 92e7a0a94aa10f20b7c8a930593a7015532e3032 /examples | |
parent | d9e52441582026bc20e1e08a37a9186cf283e079 (diff) | |
download | rygel-0347a67d128438dcce66b9ae8785c543c8ef6b1b.tar.gz |
renderer: Implement DLNA byte seeking
Adds X_DLNA_GetBytePositionInfo() method, the required state variables
and the missing SeekModes for Seek() to AVTransport2 implementation.
https://bugzilla.gnome.org/show_bug.cgi?id=710368
https://bugzilla.gnome.org/show_bug.cgi?id=707058
https://bugzilla.gnome.org/show_bug.cgi?id=707059
https://bugzilla.gnome.org/show_bug.cgi?id=707541
Diffstat (limited to 'examples')
-rw-r--r-- | examples/renderer-plugins/vala/example-player-vala.vala | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/renderer-plugins/vala/example-player-vala.vala b/examples/renderer-plugins/vala/example-player-vala.vala index 6771e433..660e956c 100644 --- a/examples/renderer-plugins/vala/example-player-vala.vala +++ b/examples/renderer-plugins/vala/example-player-vala.vala @@ -1,5 +1,6 @@ /* * Copyright (C) 2012 Intel Corporation + * Copyright (C) 2013 Cable Television Laboratories, Inc. * * This file is part of Rygel. * @@ -140,6 +141,7 @@ public class Rygel.Example.PlayerVala : GLib.Object, Rygel.MediaPlayer { } public bool can_seek { get { return false; } } + public bool can_seek_bytes { get { return false; } } private string _content_features = ""; public string? content_features { @@ -171,6 +173,12 @@ public class Rygel.Example.PlayerVala : GLib.Object, Rygel.MediaPlayer { } } + public int64 size { + get { + return 0; + } + } + private int64 _position = 0; public int64 position { get { @@ -178,10 +186,20 @@ public class Rygel.Example.PlayerVala : GLib.Object, Rygel.MediaPlayer { } } + public int64 byte_position { + get { + return 0; + } + } + public bool seek (int64 time) { return false; } + public bool seek_bytes (int64 bytes) { + return false; + } + public string[] get_protocols () { return PROTOCOLS; } |