How to control the contrast of videos using Electron?

Asked

Viewed 62 times

2

On the left side is my Electron app with a youtube video. On the right side is my app created with pygtk2 and Webkit. The contrast is better with the Webkit. With the Electron, the blackboard around the video diverges. How can I solve? inserir a descrição da imagem aqui

1 answer

2


The problem is that Electron uses webm in Chromium. The python Webkit application uses mp4. Because it is a proprietary format, mp4 is not available on Electron. The solution I found to control this difference in contrast was the use of css filters in the element in question.

-webkit-filter: contrast(120%);

Article addressing css filters

Browser other questions tagged

You are not signed in. Login or sign up in order to post.