[Qt-interest] How to make GUI communicate with mplayer?
Jan Ekholm
jan.ekholm at smultron.net
Tue Nov 17 09:01:12 CET 2009
On Tuesday 17 November 2009, Kermit Mei wrote:
> Hello Community!
>
> I use mplayer to play some music at background, such as mp3,wav and
> so on. Now I write a GUI which can help the user to control the mplayer,
> and also show some information to the user.
> I must show the user the processing of the playing music, and music,
> and also 'stop', 'play' and other informations. There's just some music,
> not video.
> Then how can I do it? By the way, the mplayer is just a binary
> programming which can run under linux.
You can use QPrococess to run mplayer. Add a -slave commandline switch and
mplayer will listen to commands on stdin. The switch is documented in
mplayer's docs, QProcess in Qt's docs and everything else available in Google.
--
Jan Ekholm
jan.ekholm at smultron.net
More information about the Qt-interest-old
mailing list