The SDK incorrectly handle device position

Description
The iOS Client SDK incorrectly handles the device orientation.
I have some incorrect behavior in the - [onMobileRTCRender:framePixelBuffer:rotation:] method link to IOS API .
The meeting is created via my application on iPad. Zoom meeting participants connect via the native Zoom application on the iPad or iPhone, but when the attendee device is rotated, SDK returns different direction of video from iPad and iPhone.
MobileRTCVideoRawDataRotation return:
iPad:
Portrait - 4
Landscape left - 1
Landscape right - 3
Upside down - 2

iPhone:
Portrait - 2
Landscape left - 3
Landscape right - 1
Upside down - 4

As a result, I cannot keep track of the correct direction of the video for further use.
Can you please help with this problem?

Hey @i.zgonnik,

Thanks for using the dev forum!

I have seen similar reports of the SDK reporting incorrect orientations for iPad in the past. Can you provide the following:

Xcode Version
SDK Version
iPad Version: device + OS
iPhone Version: device + OS

Thanks!
Michael

Hey @Michael_Condon,

Xcode Version: 12.3
SDK Version: 5.4.54520.1229
iPad Version: iPad Air - 12.4.4, iPad mini - 14.3 (Zoom version: 5.4.10(59933.0115))
iPhone Version: iPhone 6s - 13.6.1, iPhone 7 Plus - 14.3 (Zoom version: 5.4.10(59933.0115))

Hey @i.zgonnik,

Awesome thank you so much!

Michael

Hey @Michael_Condon,

Сan you please tell me when we can expect a fix for this problem?

Thanks!

Hey @i.zgonnik,

Unfortunately, I cannot provide ETA’s as the engineers must investigate this and place the fix into their current work-stream appropriately.

Thanks!
Michael

Hey @i.zgonnik,

When you are printing out the orientations from the SDK are you printing out the MobileRTCVideoRawDataRotation values? as in
1 = MobileRTCVideoRawDataRotationNone
2 = MobileRTCVideoRawDataRotation90
3 = MobileRTCVideoRawDataRotation180
4 = MobileRTCVideoRawDataRotation270

Thanks!
Michael

Hey @Michael_Condon ,
Yes, you are right.

Hey @i.zgonnik,

Awesome, thank you for the response!

Michael