# Orientation Issue

**URL:** <https://devforum.zoom.us/t/orientation-issue/16067>\
**Category:** Android\
**Created:** [May 4, 2020, 8:38pm UTC](https://devforum.zoom.us/t/orientation-issue/16067 "2020-05-04T20:38:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![royaltigerrk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/royaltigerrk/32/7652_2.png) [@royaltigerrk](https://devforum.zoom.us/u/royaltigerrk)\
**Post date:** [May 4, 2020, 8:38pm UTC](https://devforum.zoom.us/t/orientation-issue/16067/1 "2020-05-04T20:38:28Z")

</div>

**Description && Steps to Reproduce**  
I currently have all my activities set as portrait, so there is no landscape mode at all. The issue with my own camera preview. If hold the phone up as portrait view and I join a meeting, my camera will have the correct orientation. However, if I hold my phone in landscape mode (the activity is still portrait mode) and I join the meeting, my camera preview will be in the wrong orientation. Is this a bug with the SDK or there is some settings I am missing?

**Which version?**  
v4.6.21666.0427

**Smartphone (please complete the following information):**

- Device: Tested this on Pixel 4 XL and Nexus 5
- OS: Android 10 for Pixel 4 XL and Android 6.0.1 for Nexus 5

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 8, 2020, 6:56am UTC](https://devforum.zoom.us/t/orientation-issue/16067/2 "2020-05-08T06:56:17Z")

</div>

Hi [royaltigerrk](https://devforum.zoom.us/u/royaltigerrk),

Thanks for using Zoom SDK. Are you using Zoom default UI or Custom UI? If you are using Custom UI, you could call `rotateMyVideo` interfaces in onResume listener

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![royaltigerrk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/royaltigerrk/32/7652_2.png) [@royaltigerrk](https://devforum.zoom.us/u/royaltigerrk)\
**Post date:** [May 8, 2020, 11:45pm UTC](https://devforum.zoom.us/t/orientation-issue/16067/3 "2020-05-08T23:45:27Z")

</div>

I am using the Custom UI.

So I have to check to see what the video’s current orientation is and then rotateMyVideo to the correct orientation? But why is it that my Activity is set as portrait as default, but the camera is still in landscape mode?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 15, 2020, 12:38am UTC](https://devforum.zoom.us/t/orientation-issue/16067/4 "2020-05-15T00:38:24Z")

</div>

Hi [royaltigerrk](https://devforum.zoom.us/u/royaltigerrk),

Thanks for the reply. You may refer to the implementation in our demo app to configure the orientation([https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/inmeetingfunction/customizedmeetingui/video/MeetingVideoHelper.java#L47](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/inmeetingfunction/customizedmeetingui/video/MeetingVideoHelper.java#L47))

```auto
        Display display = ((WindowManager) context.getSystemService(Service.WINDOW_SERVICE)).getDefaultDisplay();
        int displayRotation = display.getRotation();
        mInMeetingVideoController.rotateMyVideo(displayRotation);

```

And the corresponding part that calls this method in our demo app is here: [https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/inmeetingfunction/customizedmeetingui/MyMeetingActivity.java#L616](https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/inmeetingfunction/customizedmeetingui/MyMeetingActivity.java#L616)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![premium](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/premium/32/1302_2.png) [@premium](https://devforum.zoom.us/u/premium)\
**Post date:** [June 1, 2020, 9:28am UTC](https://devforum.zoom.us/t/orientation-issue/16067/5 "2020-06-01T09:28:03Z")

</div>

I am using Default Ui its not working for me. Any solutions ??

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 3, 2020, 11:39am UTC](https://devforum.zoom.us/t/orientation-issue/16067/6 "2020-06-03T11:39:18Z")

</div>

Hi @premium,

Thanks for the reply. Could you elaborate the issue you are facing? What is the SDK version you are using? How to reproduce this with our demo app?

Thanks!

---

<div class="post-metadata">

**Author:** ![premium](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/premium/32/1302_2.png) [@premium](https://devforum.zoom.us/u/premium)\
**Post date:** [June 10, 2020, 6:33am UTC](https://devforum.zoom.us/t/orientation-issue/16067/7 "2020-06-10T06:33:46Z")

</div>

Yes you can produce this from your demo app. It will open in potrait although you have specified in landscape in manifest. Waiting for your reply soon

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 11, 2020, 6:52am UTC](https://devforum.zoom.us/t/orientation-issue/16067/8 "2020-06-11T06:52:50Z")

</div>

Hi @premium,

Thanks for the reply. Yes, if you are using the default UI, the meeting UI cannot be fixed. It will rotate based on the device’s orientation.

Thanks!

---

<div class="post-metadata">

**Author:** ![nilefire501](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nilefire501/32/10862_2.png) [@nilefire501](https://devforum.zoom.us/u/nilefire501)\
**Post date:** [June 22, 2020, 11:39am UTC](https://devforum.zoom.us/t/orientation-issue/16067/9 "2020-06-22T11:39:43Z")

</div>

I have created an android app, all goes fine except orientation,  
if mobile is locked the screen rotation then as video get started, my predefined landscape orientation still get turned to portrait.  
Please help

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 23, 2020, 5:51am UTC](https://devforum.zoom.us/t/orientation-issue/16067/10 "2020-06-23T05:51:02Z")

</div>

Hi @nilefire501,

Thanks for using Zoom SDK. The meeting UI cannot be fixed so it will rotate based on the device’s orientation.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:23pm UTC](https://devforum.zoom.us/t/orientation-issue/16067/11 "2020-08-21T22:23:38Z")

</div>

Closed on August 21, 2020, 10:23pm UTC


