-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout out in android browser #28
Comments
Hi @shoutao, Thanks for raising this. Could you provide some more information on what the issue is exactly and how you use ngx-webcam in your project? I will try to reproduce and fix the issue as soon as possible. Thanks! |
Hi @shoutao, |
@shoutao try to rotate your android phone - when holding it horizontally, the web-cam component is filled correctly - when holding it normally - the web-cam component get's white boxes on the left/right sides. |
Hi @basst314 |
I can reproduce the issue on an iPhone when rotating the phone after the page was loaded. A refresh in any orientation fixes the issue. Seems to be an issue with the CSS not being applied properly because of the changing dimensions of the video element. Looking into it... |
Found out that apparently Android devices return the wrong aspectRatio for portrait video streams. The aspectRatio always indicates a landscape video, therefore the bounding box is calculated incorrectly and the switch-button shows up in the wrong place. working on a fix. |
Hi @shoutao and @frederiksen, I'm happy to let you know that I published a fix for this issue in the current release 0.2.2. I tested the fix on all my devices (iOS+Android) and it resolved the bug! In case something's still not working as expected, feel free to create a new issue here. Cheers! |
Really appreciate your working. Thanks a lot. |
The layout is gone in android browser.
The text was updated successfully, but these errors were encountered: