diff options
Diffstat (limited to 'DOCS/tech')
-rw-r--r-- | DOCS/tech/slave.txt | 14 |
1 files changed, 9 insertions, 5 deletions
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 <value> [<type>] Seek to some place in the movie. |