iOS 13 / Android v9 camera resolution flipped and causes zoom-in effect
See original GitHub issueDescribe the bug On iOS 13 it seems like Safari automatically flips cameraWidth and cameraHeight if the camera is opened in portrait mode. Because JeelizResizer is doing a flip as well this causes a double flip and due to that a wrong camera resolution. Which leads to a zoom-in effect.
To Reproduce Steps to reproduce the behavior:
- Start Jeeliz with a Resizer
startJeeliz() {
window.JeelizResizer.size_canvas({
canvasId,
isFullScreen : true,
callback : (isError, videoSettings) => {
this.initFaceFilter(videoSettings)
},
onResize: () => {
if (threeCamera) {
threeCamera.aspect = CANVAS.width / CANVAS.height
threeCamera.updateProjectionMatrix()
}
}
})
}
- Pass the video parameters to init
initFaceFilter(videoSettings) {
console.log('VideoSettings', videoSettings)
window.JEEFACEFILTERAPI.init({
canvasId,
videoSettings,
- Run the app and open the camera stream
- See that the video appears to be zoomed in
Expected behavior Camera is opened with correct resolution
Desktop (please complete the following information):
- OS: iOS 13
- Browser Safari
Smartphone (please complete the following information):
- Device: iPhone6s
- OS: iOS13
- Browser Safari
Issue Analytics
- State:
- Created 4 years ago
- Comments:15 (14 by maintainers)
Top Results From Across the Web
iPhone 13 Pro Max Video Camera Zoom Issues
If you are zooming between levels, it is a digital zoom where you are actually magnifying the pixels.
Read more >Fix iOS 9 Slow Performance & Lag with Three Easy Tips
The end result is that iOS will look less fancy without any translucent windows or crazy zooming in and out motion effects, but...
Read more >Apple iPhone 13 Smartphone Review - NotebookCheck
In-depth review of the brand-new iPhone 13. The latest generation of Apple's smartphone shines with great battery life.
Read more >13 Problems with the iPhone 13 Pro & Pro Max - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >DEPSTECH Wireless Endoscope, IP67 Waterproof WiFi ...
... Inspection 2.0 Megapixels HD Snake Camera for Android and iOS Smartphone, ... endoscope camera, it is featured with fixed focus, instead of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Works for me. Thanks @xavierjs
Hi @ThorstenBux I have pushed a workaround for IOS13. I hope it will fix your bug.