in reply to Creating a video player frontend in Perl - what are my options?

The mplayer program has a so called slave mode where a frontend controls it completely. You could try to use that directly. The manpage says:

-slave (also see -input)
Switches on slave mode, in which MPlayer works as a backend for other programs. Instead of intercepting keyboard events, MPlayer will read commands separated by a newline (\n) from stdin. NOTE: See -input cmdlist for a list of slave commands and DOCS/tech/slave.txt for their description.
  • Comment on Re: Creating a video player frontend in Perl - what are my options?

Replies are listed 'Best First'.
Re^2: Creating a video player frontend in Perl - what are my options?
by rocklee (Beadle) on Oct 21, 2008 at 12:47 UTC
    Thank you for this very useful tip - I have come to realise that ideally I will have to support several playback backends; this certainly will make for an easy addition ;-)
      As a playback backend, I've not seen much which mplayer doesn't handle. It would be my choice of target.