summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-26 09:59:16 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-26 09:59:16 +0000
commit5a6f86c0691e1e0120d9603cc858d2f6f7d0cacb (patch)
tree08f24f163d1e0d301b01ba42a04ebfca784a72fa /DOCS
parent4b3ce1c8ef009328d36dfeb8466b4be4e14801f0 (diff)
downloadmpv-5a6f86c0691e1e0120d9603cc858d2f6f7d0cacb.tar.bz2
mpv-5a6f86c0691e1e0120d9603cc858d2f6f7d0cacb.tar.xz
(hopefully) better description of slave mode
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15268 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/tech/slave.txt19
1 files changed, 13 insertions, 6 deletions
diff --git a/DOCS/tech/slave.txt b/DOCS/tech/slave.txt
index e94932f18e..84b5682148 100644
--- a/DOCS/tech/slave.txt
+++ b/DOCS/tech/slave.txt
@@ -1,18 +1,25 @@
SLAVE MODE PROTOCOL
-------------------
-When run with the -slave option MPlayer will read commands separated by a
-newline (\n) from stdin. This allows controlling MPlayer like a user would with
-keypresses and command line options and is useful for building simple frontends.
+The -slave option switches on slave mode, in which MPlayer works as a backend
+for other programs. Instead of intercepting keyboard events, MPlayer will read
+commands separated by a newline (\n) from stdin.
-Most slave mode commands are equivalent to command line options.
-Have a look at the man page for more detailed descriptions.
+To try slave mode out by hand, run
+
+ mplayer -slave -quiet <movie>
+
+and type slave commands into the console window.
+
+Most slave mode commands are equivalent to command line options, though not
+necessarily under the same name. Detailed descriptions can be found in the
+man page.
All commands can be prefixed with "pausing ", causing MPlayer to pause as soon
as possible after processing the command. Please note that this can be before
the command is fully executed.
-Available commands:
+Available commands ('mplayer -input cmdlist' will print a list):
seek <value> [<type>]