# Video SDK local video rotating Samsung devices

**URL:** <https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546>\
**Category:** Android\
**Tags:** video-sdk\
**Created:** [August 17, 2023, 10:35am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546 "2023-08-17T10:35:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [August 17, 2023, 10:35am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/1 "2023-08-17T10:35:36Z")

</div>

* * *

**Description**  
Whenever I connect to a participant using Video SDK in Samsung phones, my local video gets distorted and rotated. My app is portrait mode always.

**Which Android Video SDK version?**  
I am using Zoom video SDK 1.8.5. In the earlier version, it was working fine.

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
Can be found easily on any Samsung device when i connect with participant using Video SDK

**Screenshots**  
Attaching a screenshot of both the participant and host

 ![1692267971865](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/1/f1f322f56c3cf8961cd56f2a6755990f1d351330.jpeg)  
 ![Screenshot_20230817_154906_Share](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/3/63965aec4b202258d0881331f0939672fcbdebe9.jpeg)

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

- Issue Device: Samsung M13 5G (Almost all Samsung devices)

- OS: [Android 13]

- Supporting Device (No Issue): [Google Pixel 3A]

- OS: [Android 12]

---

<div class="post-metadata">

**Author:** ![tejpratap](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tejpratap/32/50900_2.png) [@tejpratap](https://devforum.zoom.us/u/tejpratap)\
**Post date:** [August 17, 2023, 10:43am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/2 "2023-08-17T10:43:42Z")

</div>

i also facing this issues please help

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [August 24, 2023, 12:41pm UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/3 "2023-08-24T12:41:21Z")

</div>

Hi @anupam24,

Can I check if you are currently giving a fixed portrait screen orientation under your AndroidManifest.xml? Also, you can also choose to manually rotate the camera by using our Android VSDK’s ZoomInstantSDKVideoHelper class that consist of the `rotateMyVideo(int rotation)` method. For more information, you can refer to reference documentation [here](https://marketplacefront.zoom.us/sdk/custom/android/us/zoom/sdk/ZoomInstantSDKVideoHelper.html#rotateMyVideo-int-).

Thank you.

---

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [August 25, 2023, 7:08am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/4 "2023-08-25T07:08:49Z")

</div>

Hi @boonjun.tan  
Here I mentioned orientation to portrait already. I also put the below code for rotateMyVideo but it still same result.

```auto
 public void setVideoOrientation() {
        Display display = ((WindowManager) getSystemService(Service.WINDOW_SERVICE)).getDefaultDisplay();
        int displayRotation = display.getRotation();
        if (videoHelper != null) {
            Log.e(TAG, "displayRotation " + displayRotation);
            videoHelper.rotateMyVideo(displayRotation);
        }
    }

```

 ![Screenshot 2023-08-25 at 12.35.46 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/2/323db89e118a2f29b8e2fcac3e5f0823b8603b0a.png)

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [August 28, 2023, 2:15am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/5 "2023-08-28T02:15:43Z")

</div>

Hi @anupam24,

What was the log statement for the displayRotation after getting it from the systemService?

---

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [August 28, 2023, 5:28am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/6 "2023-08-28T05:28:38Z")

</div>

The log says - display rotation is 0

 ![Screenshot 2023-08-28 at 10.57.45 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/2/42cf28d7f6a9ca8cfae84a0a0bf55db4c98de104.png)

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [August 28, 2023, 5:40am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/7 "2023-08-28T05:40:13Z")

</div>

Hi @anupam24,

Can I also check when exactly are you calling your setVideoOrientation method and also the result for the line “videoHelper.rotateMyVideo(displayRotation);”. In addition, can you also send me the Zoom’s [log](https://developers.zoom.us/docs/video-sdk/android/integrate/#initialize-with-debug-log) to a shared storage (e.g. Google Drive) for me to download and view?

Thank you.

---

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [August 28, 2023, 6:05am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/8 "2023-08-28T06:05:30Z")

</div>

I call setVideoOreinatation on `onStart()` and `onCreate()` .

I am not getting any Log files on my device. Below line already implemented in my code while initialize Zoom.  
`params.enableLog = true; this`

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/1/319809498986fa53a6396149a6cddf442286d12a.png)

---

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [September 2, 2023, 5:04am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/9 "2023-09-02T05:04:26Z")

</div>

Hi @boonjun.tan  
Here is the link for Log File-

> **[Zoom\_Video\_SDK.log](https://drive.google.com/file/d/1TiwYACQWJUGnsQUOC-0BYXHYmclDU15s/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [September 4, 2023, 6:09am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/10 "2023-09-04T06:09:42Z")

</div>

Hi [@anupam](mailto:anupam@hipster-inc.com),

Thank you. We will investigate the log sent and get back to you once we find the issue.

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [September 5, 2023, 8:57am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/11 "2023-09-05T08:57:43Z")

</div>

@anupam24,

We have viewed the log but it seems like the logs given are too short and we don’t see any logs for rotation-related events.

We will like to request you to follow the steps below:

1. Join a session as per usual,
2. Stay in the session for 5-10 seconds and during this time the rotation event should also be happening in your code,
3. Leave the session,
4. Wait for a moment for the log to be generated and retrieve the log.

You can then send me the log again via Google drive.

Thank you.

---

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [September 5, 2023, 9:16am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/12 "2023-09-05T09:16:16Z")

</div>

Hi [@Boon Jun Tan](mailto:boonjun.tan@zoom.us)

I will send you a new log but before that, I just want to make sure that we developed the app for portrait mode only so we do not rotate devices while Video Calls.

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [September 7, 2023, 12:56am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/13 "2023-09-07T00:56:31Z")

</div>

Hi @anupam24,

Yes, I understood and thanks for confirming on that. I will wait for your logs and video to investigate further.

Thank you.

---

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [September 7, 2023, 6:54am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/14 "2023-09-07T06:54:40Z")

</div>

Hi [@Boon Jun Tan](mailto:boonjun.tan@zoom.us)

Here is the new log for Video Calling.

[https://drive.google.com/file/d/15Hw63O0BdflnQz6SCWa1L9-XR83DkDJN/view?usp=sharing](https://drive.google.com/file/d/15Hw63O0BdflnQz6SCWa1L9-XR83DkDJN/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [September 11, 2023, 1:47am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/16 "2023-09-11T01:47:36Z")

</div>

Hi @anupam24,

Can we also get the APK and which other Samsung model other than Samsung M13 5G is having this issue?

Lastly, have you tried running our Android sample app on the Samsung devices that have experienced issues running your application with our Video SDK and see if the same rotation issue is reproducible?

Thank you.

---

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [September 12, 2023, 11:12am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/17 "2023-09-12T11:12:23Z")

</div>

What do you mean by APK setting? I am facing an issue with the **Samsung S22** device also.  
No, I did not try running the Android Sample app on any Samsung device. Can you provide APK link?

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [September 12, 2023, 2:58pm UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/18 "2023-09-12T14:58:18Z")

</div>

Hi @anupam24,

Sorry for the confusion, I meant to request your app APK so that on our end we can try to reproduce the issue.

Our Video SDK sample app is also located inside the Video SDK zip file and for more information you can refer to this link [here](https://developers.zoom.us/docs/video-sdk/android/get-started/).

Thank you.

---

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [September 13, 2023, 10:57am UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/19 "2023-09-13T10:57:45Z")

</div>

Hi [@Boon Jun Tan](mailto:boonjun.tan@zoom.us)

_Removed confidential information_

---

<div class="post-metadata">

**Author:** ![anupam24](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anupam24/32/50957_2.png) [@anupam24](https://devforum.zoom.us/u/anupam24)\
**Post date:** [September 13, 2023, 2:09pm UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/20 "2023-09-13T14:09:25Z")

</div>

Hi [@Boon Jun Tan](mailto:boonjun.tan@zoom.us)

Before you use app, I have some instruction to follow so that it does not affect our current users.

1. When you login as client, you need to make a request therapist for a session.
2. You can go to **Saved Therapist** or **Session History** menu. (See Attachment)
3. Click on **Hire Now** button. It will send request to Therapist and you need to accept on other device which has Therapist Login.
4. Therapist will Accept request and client will confirm his side then Video Session will start.

 ![EBA96F4D-E651-4073-A347-E154D93D22C8.JPG](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/6/56d676490c67b1bdeaf2836f72a96179bb33b213.jpeg)

 ![48F68A76-1994-4189-BEA1-B791BFC2CF3C.PNG](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/6/365426048603b482b56298624a928a720cfae6b9.jpeg)

---

<div class="post-metadata">

**Author:** ![boonjun.tan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/boonjun.tan/32/38306_2.png) [@boonjun.tan](https://devforum.zoom.us/u/boonjun.tan)\
**Post date:** [September 19, 2023, 1:17pm UTC](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546/21 "2023-09-19T13:17:00Z")

</div>

Hi @anupam24,

I have removed the confidential information you sent earlier. Let me check with my engineers again on this and I will get back to you as soon as possible.

Thank you.

[Next page](https://devforum.zoom.us/t/video-sdk-local-video-rotating-samsung-devices/93546.md?page=2)
