-
Notifications
You must be signed in to change notification settings - Fork 98
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
[iOS] Camera preview is rotating even if the app supports only portrait mode #338
Comments
Hi @alexLipici-tmd we are able to reproduce the issue at our end. We will see what fix we can do either in the SDK or in the application to fix the problem. |
Hi @alexLipici-tmd We have a fix that you can do in the application . After the
This will prevent from any device orientation change notification that iOS will trigger from being sent to the SDK.
So the best way for now would be to not let the iOS send the notification , its important that you call the Let me know if this solution works. |
Hi @raosanat! I tried what you suggested and it doesn't change anything. The issue still reproduce. I've tried also moving |
Hi @alexLipici-tmd this solution works for us and verified its working. Can you send the snippet of code that you are testing with ? |
Hi @alexLipici-tmd I also verified that the solution works for me. Can you please provide more information? |
Hi @xumo-95. The code snippet looks like this: `
` Also, keep in mind to set the app to support only Portrait mode (Project Settings->General->Device Orientation->check only the Portrait) and set the Portrait Orientation Lock to off from phone settings. |
Hi @alexLipici-tmd, I made sure that the app supports Portrait only and turned off the Portrait Orientation Lock and the solution still works for me. We will look further into it. |
Hi @xumo-95 and @alexLipici-tmd, I am also investigating the issue in the iOS calling composite app. The iOS calling composite app also has this camera origination switch issue for a portrait only screen in that app. Was the fix suggested by @raosanat working for you? I tried in a few places where the iOS screen was created, and the issue was still intermittently reproducible. iOS issue for reference: https://skype.visualstudio.com/SPOOL/_workitems/edit/2612386 |
Hi @kevinyulu. The fix suggestion isn't working for me also |
This issue is a combination of bug in our SDK and on some devices. We have fixed this and will be available in our release next week. |
Fixed in the latest release v2.1.0-beta.1. |
Hi @alexLipici-tmd , would it be possible to have the latest release tested on your side as well? I tried using the iOS app but the issue seems still happening |
@kevinyulu we have tested on iPhone X and iPhone SE with which we were able to reproduce the issue with. |
@raosanat, after I tested the app a few more times, I think the issue can be resolved by using the the workaround you suggested: |
@raosanat this was pretty painful to work through and find a solution for. We've been working with the new raw media API's on iOS and were finding that the autorotation caused undesirable affects. For raw media I can't really see a good reason to auto-rotate, but at very least this should be documented. |
@FreakTheMighty can you please describe your situation a bit more. Which component is auto rotating? Are you using raw incoming video or raw outgoing video. Are you seeing the incoming video stream auto rotating or the local camera preview? |
We're using raw outgoing video from iOS to our web app. In particular, we're sending frames from ARKit. The video, as it is received in the browser, shifts resolution from WxH to HxW depending on the orientation. Oddly, they are inverted from what I'd expect. In portrait mode, we get WxH, and in landscape HxW. It also flips depending on whether your portrait-up vs portrait-down. For our use case we really don't want any autor rotation. If we send a frame with a particular image coordinate frame we want to receive it in that same frame. |
Thanks @FreakTheMighty! We'll take a look on our side. |
@gaobob-msft any update on this? We're finding We've used the raw media examples as a starting place. |
@FreakTheMighty Yes we are current working on solving this, hoping to have something in early May. |
@gaobob-msft we've found that if we call How are those fixes coming? |
@FreakTheMighty we released the latest SDK with all the raw media fixed, can you please try to see if it resolves your issue. https://github.com/Azure/Communication/releases |
Describe the bug
I implemented the 1.1.0-beta1 version of Azure Communication Calling and I observed that camera preview rotates even if the app supports only portrait as device orientation. This behaviour happens when the Portrait Orientation Lock is set to off from device settings. There is any setting for locking the rotation of the stream?
Expected behavior
Camera preview shouldn't rotate if the app's Device Orientation is set to Portrait only and Portrait Orientation Lock is set to off.
Smartphone:
The text was updated successfully, but these errors were encountered: