Active Topics

 


Reply
Thread Tools
Posts: 11 | Thanked: 0 times | Joined on Feb 2008
#1
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.

Last edited by dkarale; 2008-07-02 at 01:56.
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#2
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.

If you know how to read some Python, you could take a look at https://garage.maemo.org/plugins/scm...ox&view=markup

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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:05.