Setting background color of Video-Window

This forum is about all development around libVLC.
eli13
Blank Cone
Blank Cone
Posts: 25
Joined: 21 May 2012 15:28

Setting background color of Video-Window

Postby eli13 » 29 May 2012 09:38

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

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

Re: Setting background color of Video-Window

Postby Rémi Denis-Courmont » 29 May 2012 10:35

Currently, this is hard-coded to black.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

eli13
Blank Cone
Blank Cone
Posts: 25
Joined: 21 May 2012 15:28

Re: Setting background color of Video-Window

Postby eli13 » 29 May 2012 10:45

Thanks for the (very) quick reply.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 27 guests