Communication icon indicating copy to clipboard operation
Communication copied to clipboard

[iOS AzureCommunicationCalling 1.0.1] local video stream is rotated 180 degree when the UIDevice.set UIInterfaceOrientationMaskPortrait

Open AmyL219 opened this issue 3 years ago • 3 comments

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:

  1. Open the local video preview, and start local video stream renderering
  2. Call UIDevice.current.setValue(UIInterfaceOrientationMask.portrait.rawValue, forKey: "orientation") in the code anywhere
  3. The local video stream would rotated 180 degree
  4. See error

Expected behavior The local video stream shouldn't do any rotation when there is orientation mask set

Screenshots image

  • Version 'AzureCommunicationCalling', '1.0.1'

AmyL219 avatar Sep 02 '21 00:09 AmyL219

https://skype.visualstudio.com/SPOOL/_sprints/taskboard/ACS%20Mobile%20UI/SPOOL/CY2021-Q3/Sprint%2044%20(Ends%20September%205)?workitem=2568456

AmyL219 avatar Sep 02 '21 00:09 AmyL219

Issue still persist 2.1.0-beta.1

jimchou-dev avatar Nov 18 '21 20:11 jimchou-dev

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.

xumo-95 avatar Mar 14 '22 18:03 xumo-95