container->resize(w,h);
connect(mp, SIGNAL(readyReadStandardOutput()),this, SLOT(readPlayOutput()));
connect(mp, SIGNAL(finished(int)),this, SLOT(endPlayProcess(int)));
connect(mp, SIGNAL(started()),this, SLOT(startTimer()));
command
=otherOptions
+mplayerOptions
+" -wid "+QString::number(container
->winId
())+" -slave "+playfile;
mp->start("mplayer "+command);
QX11EmbedContainer *container=new QX11EmbedContainer(ui.frame);
container->resize(w,h);
mp=new QProcess(container);
connect(mp, SIGNAL(readyReadStandardOutput()),this, SLOT(readPlayOutput()));
connect(mp, SIGNAL(finished(int)),this, SLOT(endPlayProcess(int)));
connect(mp, SIGNAL(started()),this, SLOT(startTimer()));
command=otherOptions+mplayerOptions+" -wid "+QString::number(container->winId())+" -slave "+playfile;
mp->start("mplayer "+command);
To copy to clipboard, switch view to plain text mode
Bookmarks