Page 1 of 1

VLC Python bindings, Python and Windows

Posted: 01 Apr 2012 18:21
by ov1d1u
Hi everyone,

I'm porting a video application from Linux to Windows, which uses VLC as backend player. After fixes and fixes it's working fine now, but I got just a little issue: if I hide the video window (by a "Hide to systray" feature) and then I show it up again, the video no longer appears until I destroy the gtk.DrawingArea, I recreate it and set the new handle using set_hwnd() function provided by VLC library. The problem is that this requires to stop the video and playing it again, which is very frustrating (as the application is used to play online videos). What could be the issue? Is there any workaround to keep video image showing after hiding (and showing back) the player's window?

Re: VLC Python bindings, Python and Windows

Posted: 01 Apr 2012 19:39
by RĂ©mi Denis-Courmont
You need to arrange for the windowing toolkit (Gtk here) to preserve the window handle. In other words, this is a Gtk issue, not a VLC one.