After looking through Barry's code with QGLWidget and experimenting with PyQt4, I'm still lost as to how to implement this with the python-bindings. In the python bindings, you can usually set_agl, set_nsobject, or set_xwindow handles, but I assume that would not be relevant here.<br>
<br>How can I use python to direct VLC to draw into the OpenGL window for Qt? If that's not possible, is there a way to create a QGLWidget window with VLC as prescribed by Barry, but sandbox that so I can still integrate it into my python application? My application is already written and developed in python for Linux and Windows, so I definitely want to avoid rewriting the whole application just for Mac OS X (also, python is just a beautiful language).<br>
<br>Lastly, Olivier Aubert mentioned that if set_nsobject and set_agl don't work, they need to be fixed. Well, they don't seem to work for me in OS X, so does anyone have any pointers on where to start to fix that, if it's possible?<br>
<br>Thanks again for all the help!<br>-Jack<br>
<br><div class="gmail_quote">On Wed, Nov 25, 2009 at 6:08 PM, Ho Tuan <span dir="ltr"><<a href="mailto:tuan@post.harvard.edu" target="_blank">tuan@post.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you for the response Barry. This definitely points me in an promising direction, since I'm quite sure that the minimal_macosx is, by default, outputting something using OpenGL.<br><br>Do you have any ideas for how I would practically implement this for use with PyQt and the python-ctypes VLC bindings, or should I consider modifying the contents of minimal_macosx to allow me to use PyQt somehow?<br>
<br>Thanks!<br>-Jack<div><div></div><div><br><div class="gmail_quote">On Wed, Nov 25, 2009 at 5:29 PM, Barry Wardell <span dir="ltr"><<a href="mailto:barry.wardell@gmail.com" target="_blank">barry.wardell@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>On Wed, Nov 25, 2009 at 11:01 PM, Barry Wardell <<a href="mailto:barry.wardell@gmail.com" target="_blank">barry.wardell@gmail.com</a>> wrote:<br>
> Have you looked at the "LibVLC SampleCode Qt" tutorial on the wiki<br>
> (<a href="http://wiki.videolan.org/LibVLC_SampleCode_Qt" target="_blank">http://wiki.videolan.org/LibVLC_SampleCode_Qt</a>)? It doesn't include<br>
> Python but it does give a nice example of embedding VLC into Qt. Last<br>
> time I checked, it also worked fine on OSX.<br>
<br>
</div>Now that I actually check the forum thread you linked, I see that you<br>
have already looked at the example in the wiki.<br>
<div><br>
> Alternatively, it is possible to get VLC to draw its video into a<br>
> QGLWidget and that should work fairly well on all platforms, but that<br>
> needs a bit more effort to get things working.<br>
<br>
</div>Given that the LibVLC method doesn't seem to be working for you, this<br>
might be a good option. For Google Summer of Code this year, I worked<br>
on a cross-platform Qt GUI for VLC<br>
(<a href="http://wiki.videolan.org/SoC_2009/Media_Center_Interface_for_VLC" target="_blank">http://wiki.videolan.org/SoC_2009/Media_Center_Interface_for_VLC</a>). It<br>
works on Linux and OSX, I never tested it with Windows.<br>
<br>
The bit that is most relevant for you is the use of a QGLWidget to<br>
provide an OpenGL context for VLC to draw into. Check<br>
modules/gui/qtmc/glvideowidget.cpp<br>
<div><div></div><div><br>
Barry<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>