Mplayer will be launched in slave mode and will listen to commands sent via a Unix socket. The purpose of Pedalbear will of course be to send events to this socket and control mplayer. This setup is typically useful for transcription needs.
First, create the socket :
Then, configure Pedalbear using this configuration file:
This way, left and right pedals will be used to handle back and forward seeks in the movie/audio file and center pedal will handle the pause/resume mechanism. That way, you will be able to use the center pedal as a brake. Oh joy!