Hello. Can someone show me how to using mplayer in slave mode, and embed the player into the applications like kmplayer, Kagu, and MediaBox? I installed the Kmplayer (frontend) and the Mplayer, but when I tried to open a file from Kmplayer(mp3, avi.....), nothing happened. Do I need to do something to link the mplayer to the Kmplayer? Thank you for the help.
mplayer is started in slave mode by giving it the -slave option.
Your application holds an IO pipe to the mplayer, and you send commands to mplayer's stdin. mplayer returns information on its stdout.
It's basically just sending commands and waiting for an answer from mplayer. Using nonblocking IO avoids that long response times im mplayer block your application.
Last edited by dkarale; 2008-07-02 at 01:56.