Communication
Communication copied to clipboard
[iOS AzureCommunicationCalling 1.0.1] local video stream is rotated 180 degree when the UIDevice.set UIInterfaceOrientationMaskPortrait
Describe the bug
When the code
UIDevice.current.setValue(UIInterfaceOrientationMask.portrait.rawValue, forKey: "orientation")
being called, the local video renderering would rotated 180 degree
To Reproduce Steps to reproduce the behavior:
- Open the local video preview, and start local video stream renderering
- Call UIDevice.current.setValue(UIInterfaceOrientationMask.portrait.rawValue, forKey: "orientation") in the code anywhere
- The local video stream would rotated 180 degree
- See error
Expected behavior The local video stream shouldn't do any rotation when there is orientation mask set
Screenshots
- Version 'AzureCommunicationCalling', '1.0.1'
https://skype.visualstudio.com/SPOOL/_sprints/taskboard/ACS%20Mobile%20UI/SPOOL/CY2021-Q3/Sprint%2044%20(Ends%20September%205)?workitem=2568456
Issue still persist 2.1.0-beta.1
Hi, after calling
UIDevice.current.setValue(UIInterfaceOrientationMask.portrait.rawValue, forKey: "orientation"
you can try calling
UIDevice.current.endGeneratingDeviceOrientationNotifications()
to stop the video from filpping or rotating.
Please feel free to reopen this issue if the problem's not solved by this solution.