<div>Well I was using libvlc_video_set_parent and giving it an already created window handle and it worked fine. </div>
<div> </div>
<div>But what I really need and want to do now is have a child window to an existing main window in which to play the video. I was wondering if I need to create a window and make it a child of my main window using media_instance_set_drawable or does libvlc creates its own window and I need to make that window a child of my main window using libvlc_video_set_parent or something else entirely.
</div>
<div> </div>
<div>I just need the VLC output window to be a child of my main window.</div>
<div> </div>
<div>Thanks for your help,</div>
<div> </div>
<div>Jacques<br><br></div>
<div class="gmail_quote">On Jan 21, 2008 12:13 PM, Pierre d'Herbemont <<a href="mailto:pdherbemont@free.fr">pdherbemont@free.fr</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Jacques,<br><br>You should use media_instance_set_drawable prior to playing to set the<br>window you want to draw in. That's the prefered way.
<br><br>libvlc_video_set_parent should probably be deprecated. It set the<br>default drawable to the specified drawable for all input_thread_t, and<br>eventually change it for the running media_instance.<br><br> However, this strongly depends on the video_output driver you are
<br>using. You should check the video_output driver to see what kind of<br>drawable it expects. In your case this may be a flaw in the<br>video_output driver you are using which may not support custom<br>drawable. What vout are you using?
<br><br>Pierre.<br>
<div>
<div></div>
<div class="Wj3C7c"><br>On Jan 21, 2008, at 5:49 PM, jboileau wrote:<br><br>> Hi,<br>><br>> Am I understanding the API correctly? libvlc_video_set_parent<br>> enables to have a window parent to which the VLC window will be
<br>> child of. If I want access to the VLC window I use<br>> libvlc_media_instance_get_drawable. That I set a parent or not will<br>> always result in VLC creating the window in which it will play its<br>> video. The libvlc_video_set_parent will not set the actual window
<br>> that will be playing the video, it only ask that the window playing<br>> the video be a child of an existing window.<br>><br>> --<br>> Jacques Boileau<br></div></div>> _______________________________________________
<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><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></blockquote></div><br><br clear="all"><br>-- <br>Jacques Boileau