[MPlayer-dev-eng] running a program with a keystroke - passing playing filename to it
Reimar.Doeffinger at gmx.de
Fri Dec 17 19:32:28 CET 2010
On Fri, Dec 17, 2010 at 12:44:22PM -0300, Elias Gabriel Amaral da Silva wrote:
> I think mplayer could define some variables for the execing
> proccess. Like MPLAYER_FILENAME, MPLAYER_POS.. I am about to
> implement it (unless there is another way to do what I
> want). Does this seem reasonable?
If it was just one thing it might be reasonable, but it
sounds like your program might want all kinds of information.
You should probably just use slave mode, though the issue is
that replies will be sent to stdout which will be hard to access
from a child process.
Still, since I don't know the purpose I can't say, but I think there's
a good chance you should implement this as a slave-mode wrapper
However being able to use arbitrary properties in commands might
be a useful feature.
More information about the MPlayer-dev-eng