From ddb1f774839b7935968fe86a937dd305a9233d89 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Sep 2013 08:05:18 +0000 Subject: player: "tl goto" takes optional offset arg in HHMMSS.SUBSEC This should make implementing SetPosition in the MPRIS 2.0 spec possible. --- lib/dtas/player/client_handler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/dtas/player') diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb index 33cae05..c7dd31d 100644 --- a/lib/dtas/player/client_handler.rb +++ b/lib/dtas/player/client_handler.rb @@ -571,7 +571,8 @@ module DTAS::Player::ClientHandler # :nodoc: io.emit(@tl.tracks.map! { |i| i.to_s }.join(' ')) when "goto" track_id = msg.shift or return io.emit("ERR track_id not specified") - if @tl.go_to(track_id.to_i) + offset = msg.shift # may be nil + if @tl.go_to(track_id.to_i, offset) _tl_skip io.emit("OK") else -- cgit v1.2.3-24-ge0c7