Swizzler121 / kohamera

A simple web app camera software for taking ID photos
MIT License
0 stars 0 forks source link

Full webcam frame not being loaded #2

Open Swizzler121 opened 4 years ago

Swizzler121 commented 4 years ago

Loads a 16:9 image in a 4:3 frame, cropping the sides off.

Swizzler121 commented 4 years ago

pushed update to feature branch, getting full res in chrome, not firefox. Canvas not properly adjusting to fit yet

Swizzler121 commented 4 years ago

Canvas adjusting to video size, still getting strange resolutions in firefox, will need to do more investigation into why this is.

Swizzler121 commented 4 years ago

Found this is due to several issues in firefox see:

https://bugzilla.mozilla.org/show_bug.cgi?id=1286945 https://bugzilla.mozilla.org/show_bug.cgi?id=1433480 https://bugzilla.mozilla.org/show_bug.cgi?id=1445982#c1

Until firefox resolves these issues, I can't add widescreen to the app without sacrificing flexibility and backwards compatibility. i've added a line of code that is commented out, that when enabled will force firefox into a larger-frame widescreen.

I've also adjusted to code to better scale the elements on the page to account for future resolutions. I've tested it with up to 1920x1080p video in chrome, and it appears to be managing it happily. Going to call this issue solved in Chrome and awaiting a resolution from Mozilla...