From f9e3dd47c25534af631a13e57f86fc69b03db9be Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 7 Sep 2015 03:53:18 +0000 Subject: player: add "queue cat" command This will dump the contents of the current queue, including positional seeking information and commands. This is mainly intended for debugging and tools which rely on dtas internals. --- lib/dtas/player.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb index a102618..a1e2040 100644 --- a/lib/dtas/player.rb +++ b/lib/dtas/player.rb @@ -251,6 +251,8 @@ class DTAS::Player # :nodoc: tl_handler(io, msg) when "trim" trim_handler(io, msg) + when "queue" + msg[0] == "cat" and io.emit(@queue.to_yaml) end end -- cgit v1.2.3-24-ge0c7