diff options
author | Christophe Guiraud <christophe.guiraud@intel.com> | 2013-09-11 17:45:24 +0200 |
---|---|---|
committer | Christophe Guiraud <christophe.guiraud@intel.com> | 2013-09-17 15:42:56 +0200 |
commit | dfda858b5ae63914b45fc35fcbbc47b63d215b04 (patch) | |
tree | 187a400ff686cb496474218fcaae91fa599bd243 /doc/server | |
parent | 7df1714b593e73533cfb50a4ece623267d94df79 (diff) | |
download | dleyna-renderer-dfda858b5ae63914b45fc35fcbbc47b63d215b04.tar.gz |
[Device] Fix dlr_device_seek implementation
dlr_device_seek was incorrectly implemented.
Modify the current implemention to retrieve the current position with
the right method depending on the unit (time or byte) and add it to
the delta specified in Seek request, and then call
dlr_device_set_position().
so now we have:
- TIME SEEK OPERATIONS
Seek(offset)
-> current_position = UPNP GetPositionInfo["RelTime"]
-> UPNP Seek["REL_TIME", current_position + offset]
SetPosition(position)
-> UPNP Seek["REL_TIME", position]
- BYTE SEEK OPERATIONS
ByteSeek(offset)
-> current_position = UPNP X_DLNA_GetBytePositionInfo["RelByte"]
-> UPNP Seek["X_DLNA_REL_BYTE", current_position + offset]
SetBytePosition(position)
-> UPNP Seek["X_DLNA_REL_BYTE", position]
Partial fix for issue:
https://github.com/01org/dleyna-renderer/issues/115
Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
Diffstat (limited to 'doc/server')
-rw-r--r-- | doc/server/dbus/API.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/server/dbus/API.txt b/doc/server/dbus/API.txt index bfd2721..7556b6a 100644 --- a/doc/server/dbus/API.txt +++ b/doc/server/dbus/API.txt @@ -344,8 +344,8 @@ ByteSeek(x Offset) -> void SetBytePosition(o TrackID, x Position) -> void Same as Seek and SetPosition but last parameter (Offset and Position) is not -expressed in second but in byte, and allows to set the seekmode to respectively -“REL_COUNT” and “ABS_COUNT” . New in version 0.2.1 +expressed in second but in byte, and allows to set the seekmode by using +“X_DLNA_REL_BYTE” unit. New in version 0.2.1 org.mpris.MediaPlayer2.TrackList and org.mpris.MediaPlayer2.Playlists |