From 8ce3d1b41270278de59e3090304bc166cbdcce7c Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 25 Apr 2005 09:20:21 +0000 Subject: better slave mode description git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15265 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/tech/slave.txt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'DOCS/tech') diff --git a/DOCS/tech/slave.txt b/DOCS/tech/slave.txt index 505aa41fe3..e94932f18e 100644 --- a/DOCS/tech/slave.txt +++ b/DOCS/tech/slave.txt @@ -1,15 +1,19 @@ 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. + Most slave mode commands are equivalent to command line options. Have a look at the man page for more detailed descriptions. -If the -slave option is given, playback is controlled by a line-based protocol. -Each line must contain one of the following commands: +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: -All commands can be prefixed with "pausing ", causing MPlayer to get into -paused mode as soon as possible after processing the command. -Please note that this can be before the command is fully executed. seek [] Seek to some place in the movie. -- cgit v1.2.3