about summary refs log tree commit homepage
path: root/lib/dtas/player/client_handler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dtas/player/client_handler.rb')
-rw-r--r--lib/dtas/player/client_handler.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb
index 355451d..33cae05 100644
--- a/lib/dtas/player/client_handler.rb
+++ b/lib/dtas/player/client_handler.rb
@@ -583,6 +583,13 @@ module DTAS::Player::ClientHandler # :nodoc:
     when "current-id"
       path = @tl.cur_track
       io.emit(path ? path.object_id.to_s : "NONE")
+    when "next"
+      _tl_skip
+      io.emit("OK")
+    when "previous"
+      @tl.previous!
+      _tl_skip
+      io.emit("OK")
     end
   end
 end