# Video Aspect Ratio isn't 16:9

**URL:** <https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595>\
**Category:** Web\
**Tags:** video-sdk, sdk\
**Created:** [March 10, 2025, 10:50am UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595 "2025-03-10T10:50:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![namlv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/namlv/32/51610_2.png) [@namlv](https://devforum.zoom.us/u/namlv)\
**Post date:** [March 10, 2025, 10:50am UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/1 "2025-03-10T10:50:53Z")

</div>

**Description**

- When I startVideo with a virtual background, sometimes the video aspect ratio is not 16:9. I have tried multiple times with the same options when starting the video.
- When the video aspect ratio is not 16:9, I do not receive any errors when starting the video.
- This is my sessionId: `VEd4yzv8Ste4+FscN5Cl2w==`

I would appreciate any help.

**Which Web [Video SDK](https://developers.zoom.us/docs/video-sdk) version?**  
VideoSDK: 2.1.0

**[Video SDK](https://developers.zoom.us/docs/video-sdk) Code Snippets**

```auto
    let videoOptions = {
      cameraId: cameraId,
      hd: state.mediaStream.isSupportHDVideo(),
      originalRatio: false,
    };

    if (state.mediaStream.isSupportVirtualBackground() && virtualBackground) {
      videoOptions.virtualBackground = { imageUrl: virtualBackground };
    }
    await state.mediaStream.startVideo(videoOptions);

```

**To Reproduce**

1. Join the meeting.
2. Start the camera.

_My customer mentioned that simply toggling the camera on and off also causes this issue._

**3. Browser/Client Type and Version**

- **Device** : macOS
- **Browser** : Chrome
- **Browser Version** : Chrome version 133

---

<div class="post-metadata">

**Author:** ![namlv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/namlv/32/51610_2.png) [@namlv](https://devforum.zoom.us/u/namlv)\
**Post date:** [March 11, 2025, 11:07am UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/2 "2025-03-11T11:07:14Z")

</div>

> [@namlv](#):
>
> When the video aspect ratio is not 16:9, I do not receive any errors when starting the video.

Sorry, I checked again and noticed the message “HD support is currently limited, and comes with a number of restrictions and limitations” .

---

<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 21, 2025, 12:11pm UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/3 "2025-03-21T12:11:07Z")

</div>

Can you check this, @vic.yang? We’re also facing this issue—it usually appears on small screens (small width and large height).

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [March 21, 2025, 2:12pm UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/4 "2025-03-21T14:12:15Z")

</div>

Hey @namlv

Thanks for your feedback.

> VEd4yzv8Ste4+FscN5Cl2w==

We analyzed the logs and confirmed that the captured aspect ratio was 4:3 instead of 16:9. The logs indicate that we attempted to capture video at a 1280x720 resolution, but it failed, causing a fallback to the default capture. This may be due to the camera not supporting the specified constraints.

Could you test it using the official WebRTC sample?

> **[getUserMedia: select resolution](https://webrtc.github.io/samples/src/content/getusermedia/resolution/)**
>
> WebRTC code samples

Thanks  
Vic

---

<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 22, 2025, 5:38am UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/5 "2025-03-22T05:38:21Z")

</div>

@vic.yang Thanks for your response.

We’d like to provide more details on this case:

- When this issue occurs, turning the camera off and then on again → the video ratio is corrected, and the issue no longer appears.
- The issue occurs when rendering with Canvas. However, switching to `video-player` inside `video-player-container` → the video ratio is corrected, and the issue no longer appears
- If we remove the option `hd: state.mediaStream.isSupportHDVideo()` → the video ratio is corrected, and the issue no longer appears. Could this be related to the warning: _“HD support is currently limited and comes with several restrictions and limitations”_?

Can you help us identify the root cause and suggest a solution for this?

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [March 22, 2025, 1:32pm UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/6 "2025-03-22T13:32:11Z")

</div>

Hi @lmtruong1512

> The issue occurs when rendering with Canvas. However, switching to `video-player` inside `video-player-container`

Yes. We recommend using `stream.attachVideo` method instead of `stream.renderVideo` method in the 2.x version, as the latter one may be deprecated in the future release.

> _“HD support is currently limited and comes with several restrictions and limitations”_ ?

It is just a notification indicating that HD or Full HD video may not be effective on certain platforms or devices. We will gradually support more platforms. This notification does not affect functionality.

Thanks  
Vic

---

<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 24, 2025, 2:00am UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/7 "2025-03-24T02:00:20Z")

</div>

@vic.yang Thanks, we’ll temporarily disable the HD option to fix the ratio issue and later switch to `stream.attachVideo` instead of `stream.renderVideo`.

---

<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 26, 2025, 4:06am UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/8 "2025-03-26T04:06:51Z")

</div>

@vic.yang Preview also encountered this issue. We can’t set it within a 16:9 view without black edges. I converted canvas to use video-player but the issue still appear

I checked the camera resolution, and it appears that the supported formats are:

- 180p (320x180)
- QVGA (320x240)
- 360p (640x360)
- VGA (640x480)

However, HD (1280x720) and Full HD (1920x1080) are not supported.

On preview screen, I switched from using a `canvas` to a `video-player`, but the issue still persists. How can we resolve this? I tested with the official Zoom web client, and it seems to zoom in to fit a 16:9 view.

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [March 26, 2025, 6:58am UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/9 "2025-03-26T06:58:40Z")

</div>

Hi @lmtruong1512

This is currently a limitation in the Video SDK Web preview feature.

If you know the camera’s supported aspect ratio (e.g., it only captures 4:3 video), you can adjust the `video-player`’s `aspect-ratio` setting to 4:3.

Thanks  
Vic

---

<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:** [April 25, 2025, 4:58pm UTC](https://devforum.zoom.us/t/video-aspect-ratio-isnt-16-9/129595/10 "2025-04-25T16:58:41Z")

</div>

Closed on April 25, 2025, 4:58pm UTC

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