[MPlayer-dev-eng] Custom input

Rok stefanic_rok at siol.net
Fri Mar 24 18:00:12 CET 2006


Hello,

I have just made my custom input for mplayer. But I have a problem with
dealing with sending commands to it.

An input has functions ..._input_init() ..._input_read(), where read()
function should return an int.

I don't know what to return in read() function for example to achieve
MP_CMD_SEEK effect. I have tried to send back te (ASCII) space char
which works and pauses the player, but I want to be able to send
commands which are listed in input.h file such are MP_CMD_SEEK or
MP_CMD_PAUSE...

Can anybody help me how this is done?

Thank you,
Rok




More information about the MPlayer-dev-eng mailing list