[MPlayer-users] MediaControl via Mplayer

Joey Parrish joey.parrish at gmail.com
Wed May 16 21:48:11 CEST 2007


On 5/16/07, Anmol Ranka <Anmol_Ranka at mindtree.com> wrote:
> Hi All,
>
> Thanks Carl for the reply. I could control Mplayer through console by
> following the steps mentioned in the url
> <http://svn.mplayerhq.hu/mplayer/trunk/DOCS/tech/slave.txt?view=markup>.
>
> I have few more doubts regarding how to achieve the same programmatically:
>
> 1) Through my program can I use the API 'system' to send command to Mplayer.
> Ex -- If I want to pause the currently running movie , can I use
> system(pause).

You misunderstand.  You must run mplayer from your app such that you
can write to a file descriptor which represent's mplayer's stdin.  So
not system(pause), but write(mplayer_fd, "pause", 6).

> 2) Are the commands like 'get_file_name', 'get_meta_album', 'volume', 'mute'
> etc are API exposed by some library?

No.  Sorry.

--Joey



More information about the MPlayer-users mailing list