bp2008 / ui3

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

HTML5 video player zoom causes video decoder crash #130

Closed bp2008 closed 1 year ago

bp2008 commented 1 year ago

In Chromium-based browsers, the HTML5 video player element does not react well to digital zoom. For years it has caused rendering issues on some devices, or player stalls. In recent months it can also cause the video decoder to crash with an error message. It is totally out of my hands, all I can do is try to work around the issues.

UI3 should be made to restart the stream if the player crashes. It may also be necessary to reset the digital zoom level to a safe value.

It should be noted that if I was to hide the <video> element, capture every frame out of it and render the frames to a canvas, this would be a non-issue. However there would be significant performance overhead and a small amount of additional delay.

bp2008 commented 1 year ago

Worked around the issue by hiding the <video> element and rendering instead to a <canvas> when the zoom level is higher than fit. Released in UI3-228.