VLC Python bindings, Python and Windows

This forum is about all development around libVLC.
ov1d1u
New Cone
New Cone
Posts: 8
Joined: 20 Apr 2010 22:38

VLC Python bindings, Python and Windows

Postby ov1d1u » 01 Apr 2012 18:21

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC Python bindings, Python and Windows

Postby Rémi Denis-Courmont » 01 Apr 2012 19:39

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 3 guests