Page 1 of 1

Setting background color of Video-Window

Posted: 29 May 2012 09:38
by eli13
Hello everyone.

First thanks for the great lib - following the tutorial how to display a video in a CWnd-object using libvlc worked out of the box.

I have one question atm (more will probably follow): I use

Code: Select all

libvlc_media_player_set_hwnd (mp, hwnd);
to set the CWnd where the video should be rendered to. This works perfect - even things like resizing the window makes libvlc scale the video :)

At the moment the space "around" the video is filled with black color. Is there an easy way to change this? Thanks for any help.

eli

Re: Setting background color of Video-Window

Posted: 29 May 2012 10:35
by RĂ©mi Denis-Courmont
Currently, this is hard-coded to black.

Re: Setting background color of Video-Window

Posted: 29 May 2012 10:45
by eli13
Thanks for the (very) quick reply.