night-video-tuner icon indicating copy to clipboard operation
night-video-tuner copied to clipboard

Select a video area

Open MMarty11 opened this issue 3 years ago • 2 comments

Hi, would it be possible to implement a function to select only a video area in which to apply the extension? My problem is that using it on Microsoft Stream to see university lectures, setting the "invert" feature makes the edges of the video that would be dark become very light. Or maybe do you have any other ideas to solve the problem? I hope I have made the idea and that you accept my request, thanks.

MMarty11 avatar Mar 02 '21 17:03 MMarty11

Hello @MMarty11 ! 👋🏻

Thanks for the suggestion. As far as I know, browsers don't support applying the CSS filters used by this extension to specific video areas. However, if you or someone else comes up with a way to do this, feel free to submit a pull request, I'll be happy to take a look at it. 😉

PyvesB avatar Mar 04 '21 10:03 PyvesB

Maybe you could overlay a div (or a pseudoelement) on top of the video and use backdrop-filter (working example: https://jsfiddle.net/gykpews4/2/). In Firefox it currently has to be enabled manually in about:config > layout.css.backdrop-filter.enabled.

Ghost4Man avatar Mar 04 '21 13:03 Ghost4Man