bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
124 stars 16 forks source link

Stop rendering HTML5 <video> natively. Use <canvas>. #131

Closed bp2008 closed 1 year ago

bp2008 commented 1 year ago

Another issue has cropped up with HTML5 video in Chromium browsers: when fullscreened, digital zoom can't scale up the video larger than the viewport.

I've had enough. I'm going to put the <video> element in the background and change the HTML5 player to copy every frame to a <canvas> for rendering.

Side effects are expected:

Related issues: https://github.com/bp2008/ui3/issues/124 https://github.com/bp2008/ui3/issues/130

bp2008 commented 1 year ago

The workaround has been implemented in UI3-228.

Keeping issue open to monitor for issues with the workaround.

bp2008 commented 1 year ago

Picture-in-picture still works (in Chrome on Windows), however it is a little odd now because PiP normally suppresses rendering of the regular video element. But now when you zoom in, the UI begins rendering the video in a canvas and it becomes visible again within the UI3 window.

bp2008 commented 1 year ago

As anticipated, the HTML5 video player no longer keeps the screen alive if it is in canvas rendering mode. As this only happens when you are zoomed in, I'm not too concerned. This will become a non-issue later when https://github.com/bp2008/ui3/issues/124 is handled.