Vedio cannot be rendered in a semitransparent window
Posted: 16 Jan 2012 08:41
Hello,
In a project of MFC, I created a CStatic control in a dialog and set it the video output window(using libvlc_media_player_set_hwnd), and it works. However, if I set the WS_EX_LAYERED attribute to the dialog and set its opacity, the video ouput is black. I tried it in MAC OS X, it had no problem when the outer window is semitransparent. How could I solve the problem? The version of libVLC is 1.1.11. Thanks in advance!
In a project of MFC, I created a CStatic control in a dialog and set it the video output window(using libvlc_media_player_set_hwnd), and it works. However, if I set the WS_EX_LAYERED attribute to the dialog and set its opacity, the video ouput is black. I tried it in MAC OS X, it had no problem when the outer window is semitransparent. How could I solve the problem? The version of libVLC is 1.1.11. Thanks in advance!