Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, February 2007
MPlayer embedded in QWidget


Message 1 in thread

Hi,





Can somebody help me with embedding of MPlayer in QWidget. I'm trying with 
QProcess and mplayer -wid connected to widget->winID(), but with no success. 
Some code will be really really nice.



Thanks



Julian




--
 [ signature omitted ] 

Message 2 in thread

On 22.02.07 15:12:27, Julian Michailov wrote:
> Can somebody help me with embedding of MPlayer in QWidget. I'm trying with 
> QProcess and mplayer -wid connected to widget->winID(), but with no success. 
> Some code will be really really nice.

I guess you could look into kmplayer

Andreas

-- 
 [ signature omitted ] 

Message 3 in thread

there is a German article from 2004 at
http://lists.opensuse.org/opensuse-programming-de/2004-01/msg00167.html

they basically say that it should (as you said) work with
mplayer -wid mywidget->winId();

important detail: mplayer has to run without UI, so it shouldn't say "gui=yes" in mplayer.conf
and they state problems if 'mywidget' is not the root window

.. haven't tried it myself though..


Cheers,
Manu



Andreas Pakulat wrote:
> On 22.02.07 15:12:27, Julian Michailov wrote:
>> Can somebody help me with embedding of MPlayer in QWidget. I'm trying with 
>> QProcess and mplayer -wid connected to widget->winID(), but with no success. 
>> Some code will be really really nice.
> 
> I guess you could look into kmplayer
> 
> Andreas
> 

--
 [ signature omitted ] 

Message 4 in thread

Thanks Guys,



I got it. Exactly as Manu said the key is in winId() . Good example is also 
SMPLAYER.

Just to remind to Windows guys that they should check the "-vo" option 
should be "directx:noaccel";



Cheers,



Julian







"Manuela Hutter" <manuela.hutter@xxxxxx> wrote in message 
news:erld3q$a7b$1@xxxxxxxxxxxxxxxxxxxxx
> there is a German article from 2004 at
> http://lists.opensuse.org/opensuse-programming-de/2004-01/msg00167.html
>
> they basically say that it should (as you said) work with
> mplayer -wid mywidget->winId();
>
> important detail: mplayer has to run without UI, so it shouldn't say 
> "gui=yes" in mplayer.conf
> and they state problems if 'mywidget' is not the root window
>
> .. haven't tried it myself though..
>
>
> Cheers,
> Manu
>
>
>
> Andreas Pakulat wrote:
>> On 22.02.07 15:12:27, Julian Michailov wrote:
>>> Can somebody help me with embedding of MPlayer in QWidget. I'm trying 
>>> with QProcess and mplayer -wid connected to widget->winID(), but with no 
>>> success. Some code will be really really nice.
>>
>> I guess you could look into kmplayer
>>
>> Andreas
>> 


--
 [ signature omitted ]