How to control the contrast of videos using Electron?

2

On the left side is my Electron application with a youtube video. On the right side is my application created with pygtk2 and webkit. Contrast is best with webkit. With Electron, the blackboard around the video diverges. How can I solve it?

    
asked by anonymous 16.06.2016 / 05:29

1 answer

2

The problem is that Electron uses webm on chromium. The webkit application in python 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 in using css filters on the element in question.

-webkit-filter: contrast(120%);

Article addressing css filters

    
16.06.2016 / 05:37