Hi all,
I got some of my problems fixed. However I got some question with the function
void libvlc_video_set_parent (libvlc_instance_t *, libvlc_drawable_t ,libvlc_exception_t *)
This function is used for set the default video output parent. This settings will be used as default for all video outputs.
Code: Select all
Parameters:
p_instance libvlc instance
drawable the new parent window (Drawable on X11, CGrafPort on MacOSX, HWND on Win32)
p_exception an initialized exception
I tryed to use libvlc_video_set_parent(_vlcinstance ,reinterpret_cast<libvlc_drawable_t>(m_vlcWindow),&_vlcexcep);
or libvlc_video_set_parent(_vlcinstance ,(libvlc_drawable_t)m_vlcWindow),&_vlcexcep);
but the drawable parameter doesn't work, I got an
Code: Select all
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 7 (X_ReparentWindow)
Resource id in failed request: 0x8770c00
Serial number of failed request: 220
Current serial number in output stream: 221
m_vlcWindow is an wxPanel, but it doesn't work.
Does anybody know what can be a drawable object for wxwidget which can be used with libvlc_video_set_parent?
I looked over the web but I didn't found any solution of wxwidget using libvlc.
Any helps welcome
Eric