|
发表于 2008-12-10 10:53:56
|
显示全部楼层
控制mplayer不用那么麻烦,看它的-input 命令。
-input <commands>
This option can be used to configure certain parts of the input system. Paths are relative to ~/.mplayer/.
NOTE: Autorepeat is currently only supported by joysticks.
Available commands are:
conf=<filename>
Specify input configuration file other than the default ~/.mplayer/input.conf. ~/.mplayer/<filename>
is assumed if no full path is given.
ar-delay
Delay in milliseconds before we start to autorepeat a key (0 to disable).
ar-rate
Number of key presses to generate per second on autorepeat.
keylist
Prints all keys that can be bound to commands.
cmdlist
Prints all commands that can be bound to keys.
js-dev
Specifies the joystick device to use (default: /dev/input/js0).
file=<filename>
Read commands from the given file. Mostly useful with a FIFO.
NOTE: When the given file is a FIFO MPlayer opens both ends so you can do several 'echo "seek 10" >
mp_pipe' and the pipe will stay valid. |
|