# HG changeset patch # User diego # Date 1114420821 0 # Node ID 1692cd76d52a9094908726a53f74e9130eea53fc # Parent e2a2311d1ddaf9b7817bebecd600e41c7930df51 better slave mode description diff -r e2a2311d1dda -r 1692cd76d52a DOCS/tech/slave.txt --- a/DOCS/tech/slave.txt Mon Apr 25 09:04:26 2005 +0000 +++ b/DOCS/tech/slave.txt Mon Apr 25 09:20:21 2005 +0000 @@ -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. -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. +Available commands: + seek [] Seek to some place in the movie.