# Camera rotates horizontally when selecting virtual background

**URL:** <https://devforum.zoom.us/t/camera-rotates-horizontally-when-selecting-virtual-background/130042>\
**Category:** Web\
**Created:** [March 18, 2025, 7:27am UTC](https://devforum.zoom.us/t/camera-rotates-horizontally-when-selecting-virtual-background/130042 "2025-03-18T07:27:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [March 18, 2025, 7:27am UTC](https://devforum.zoom.us/t/camera-rotates-horizontally-when-selecting-virtual-background/130042/1 "2025-03-18T07:27:04Z")

</div>

**Description**  
On the Latitude 7320 Detachable running Windows 11, when using portrait mode (similar to an iPad) and switching from a normal video to a virtual background, the camera rotates horizontally.

This issue occurs in both the preview and during meeting sessions.

Additionally, in the meeting, the camera is stretched abnormally.

This is my sessionID: `/Zz4K4IhSqmEqi2iJTElCA==`

**Browser Console Error**  
N/A

**Which Web Video SDK version?**  
2.1.0

**Video SDK Code Snippets**

```auto
    try {
      if (imageUrl) {
        await this.localVideoTrack.start(document.querySelector('#preview-camera-canvas'), { imageUrl: imageUrl });
      } else {
        await this.localVideoTrack.start(document.querySelector('#preview-camera-video'));
      }
    } catch (error) {
      Logger.error('[VIDEO-SDK JS] Start local preview video error', error);
      throw error;
    }

```

**To Reproduce(If applicable)**

1. Open camera without virtual background
2. Rotate device to portrait mode
3. Switch to virtual background

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

- Device: Latitude 7320 Detachable
- OS: Window 11 Pro
- Browser: Chrome
- Browser Version: 134.0.6998.89

---

<div class="post-metadata">

**Author:** ![ticorrian.heard](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ticorrian.heard/32/70213_2.png) [@ticorrian.heard](https://devforum.zoom.us/u/ticorrian.heard)\
**Post date:** [April 16, 2025, 2:44pm UTC](https://devforum.zoom.us/t/camera-rotates-horizontally-when-selecting-virtual-background/130042/3 "2025-04-16T14:44:44Z")

</div>

Hi @lmtruong1512 Apologies for the wait here. Can you confirm if youre still experiencing this issue? I notive you are using a canvas element in your conditional and wonder if the issue would persist if you try using the video element

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [April 17, 2025, 2:17am UTC](https://devforum.zoom.us/t/camera-rotates-horizontally-when-selecting-virtual-background/130042/4 "2025-04-17T02:17:19Z")

</div>

@ticorrian.heard We tested using the video element, and the issue no longer occurs.

Thank you for your support!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 17, 2025, 12:17pm UTC](https://devforum.zoom.us/t/camera-rotates-horizontally-when-selecting-virtual-background/130042/5 "2025-05-17T12:17:24Z")

</div>

Closed on May 17, 2025, 12:17pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
