Using libvlc with Qt4 - multi-video display

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
johnlet
New Cone
New Cone
Posts: 5
Joined: 27 Sep 2007 13:00

Using libvlc with Qt4 - multi-video display

Postby johnlet » 17 Oct 2008 19:05

Hi all,
I have been playing around with vlc for a year or so now...quite the package! I have recently moved up to 0.9.4, and I also have a need to write my own client that will use libvlc. I have done much reading, but I cannot seem to find the information in these topics to get me to a solution.

I want to write a qt4 app that will manage several frames, each will display a video stream. All these tiles will appear in a window, and some will come/go as the user desires.

I have looked through the qt4 gui module and it seems to be using the internal methods of vlc and not the libvlc interface; that's OK, but I'd want to use the libvlc. I just don't know what to pass in as a "drawable" entity. Also I don't know if I need to be manipulating the parent, or just doing a media_player_set_drawable. I think I will need multiple vlc instances, one for each video stream...or is is possible to have multiple players under the one instance?

Any pointers and guidance are very much appreciated!

Thanks.
JPL

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Using libvlc with Qt4 - multi-video display

Postby Jean-Baptiste Kempf » 17 Oct 2008 19:28

I would try media_player_set_drawable and QWidget::winId()
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

johnlet
New Cone
New Cone
Posts: 5
Joined: 27 Sep 2007 13:00

Re: Using libvlc with Qt4 - multi-video display

Postby johnlet » 20 Oct 2008 22:23

Ahhh...that is looking promissing. Thanks for the pointer!

JPL
:)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Using libvlc with Qt4 - multi-video display

Postby Jean-Baptiste Kempf » 20 Oct 2008 23:48

Qwidget *w;

take w :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests