Changing backgroud color

This forum is about all development around libVLC.
cijic
New Cone
New Cone
Posts: 2
Joined: 18 Jun 2014 15:47

Changing backgroud color

Postby cijic » 18 Jun 2014 16:52

Hello. There is a method to change background color for player?

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

Re: Changing backgroud color

Postby Rémi Denis-Courmont » 18 Jun 2014 18:22

If I recall correctly, the background color is that of the embedding X11 window. LibVLC does not change the background; it just draws the video.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

cijic
New Cone
New Cone
Posts: 2
Joined: 18 Jun 2014 15:47

Re: Changing backgroud color

Postby cijic » 19 Jun 2014 07:12

So, another question: can I draw semi-transparent window/widget (in Qt, for example) over the player? It can remain semi-transparent or it will be monotone (no it is so I have problem with that)? Or libvlc doesn't affect on it?

mangokm40
Cone that earned his stripes
Cone that earned his stripes
Posts: 130
Joined: 20 May 2010 20:00

Re: Changing backgroud color

Postby mangokm40 » 19 Jun 2014 18:30

"...can I draw semi-transparent window/widget (in Qt, for example) over the player?..."

I don't use "widgets" or Qt. However, the controls are "semi-transparent" and appear over the playing video just fine.

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

Re: Changing backgroud color

Postby Rémi Denis-Courmont » 19 Jun 2014 18:50

If you provide your own window, you can do whatever you want over it. How well this works depends on the display drivers and video output method used.
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 13 guests