# The SDK incorrectly handle device position

**URL:** <https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477>\
**Category:** iOS\
**Created:** [January 25, 2021, 12:46pm UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477 "2021-01-25T12:46:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![i.zgonnik](https://avatars.discourse-cdn.com/v4/letter/i/d6d6ee/32.png) [@i.zgonnik](https://devforum.zoom.us/u/i.zgonnik)\
**Post date:** [January 25, 2021, 12:46pm UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477/1 "2021-01-25T12:46:06Z")

</div>

**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](https://marketplacefront.zoom.us/sdk/meeting/ios/protocol_mobile_r_t_c_video_raw_data_delegate_01-p.html#a60a19fb7126b2e0cb67cdfa666187d20).  
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?

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 25, 2021, 7:41pm UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477/2 "2021-01-25T19:41:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![i.zgonnik](https://avatars.discourse-cdn.com/v4/letter/i/d6d6ee/32.png) [@i.zgonnik](https://devforum.zoom.us/u/i.zgonnik)\
**Post date:** [January 26, 2021, 8:45am UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477/3 "2021-01-26T08:45:03Z")

</div>

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))

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 26, 2021, 7:03pm UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477/4 "2021-01-26T19:03:45Z")

</div>

Hey @i.zgonnik,

Awesome thank you so much!

Michael

---

<div class="post-metadata">

**Author:** ![i.zgonnik](https://avatars.discourse-cdn.com/v4/letter/i/d6d6ee/32.png) [@i.zgonnik](https://devforum.zoom.us/u/i.zgonnik)\
**Post date:** [January 27, 2021, 9:10am UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477/5 "2021-01-27T09:10:58Z")

</div>

Hey @Michael_Condon,

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

Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 27, 2021, 6:04pm UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477/6 "2021-01-27T18:04:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [February 19, 2021, 7:27pm UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477/7 "2021-02-19T19:27:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![i.zgonnik](https://avatars.discourse-cdn.com/v4/letter/i/d6d6ee/32.png) [@i.zgonnik](https://devforum.zoom.us/u/i.zgonnik)\
**Post date:** [February 22, 2021, 4:23pm UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477/8 "2021-02-22T16:23:08Z")

</div>

Hey @Michael_Condon ,  
Yes, you are right.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [February 22, 2021, 7:34pm UTC](https://devforum.zoom.us/t/the-sdk-incorrectly-handle-device-position/41477/9 "2021-02-22T19:34:19Z")

</div>

Hey @i.zgonnik,

Awesome, thank you for the response!

Michael
