# Wrong aspect ratio for first renderVideo

**URL:** <https://devforum.zoom.us/t/wrong-aspect-ratio-for-first-rendervideo/88139>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [May 10, 2023, 8:58am UTC](https://devforum.zoom.us/t/wrong-aspect-ratio-for-first-rendervideo/88139 "2023-05-10T08:58:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.kita](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/r.kita/32/48361_2.png) [@r.kita](https://devforum.zoom.us/u/r.kita)\
**Post date:** [May 10, 2023, 8:58am UTC](https://devforum.zoom.us/t/wrong-aspect-ratio-for-first-rendervideo/88139/1 "2023-05-10T08:58:52Z")

</div>

This is the state where the smartphone user’s first startVideo is executed with two users participating. The aspect ratio is strange.

The second startVideo is displayed with the expected aspect ratio.

what’s the problem?

```auto
const startVideoOptions: CaptureVideoOption = {
  ptz: mediaStream?.isBrowserSupportPTZ(),
  originalRatio: true,
  hd: true,
};
await mediaStream?.startVideo(startVideoOptions);

```

```auto
useEffect(() => {
  (async() => {
    if (!(mediaStream && videoRef.current && isVideoDecodeReady && otherUser)) {
      return
    }
    const canvasElement = videoRef.current
  
    if (otherUser?.bVideoOn) {
      await mediaStream.renderVideo(canvasElement, otherUser.userId, 0, 0, 0, 0, VideoQuality.Video_720P)
    } else {
      await mediaStream.stopRenderVideo(canvasElement, otherUser.userId);
    }
  })()
}, [mediaStream, otherUser, isVideoDecodeReady]);

```

**Which Web Video SDK version?**  
“@zoom1234/videosdk”: “1.7.5”

**Device:**

- Device: MacBook Pro
- OS: macOS 13
- Browser: Chrome
- Browser Version 112.0.5615.137

![output](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/5/c52b7043389d110544faabf4ac307c8e10f7b772.gif)

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [May 10, 2023, 3:58pm UTC](https://devforum.zoom.us/t/wrong-aspect-ratio-for-first-rendervideo/88139/2 "2023-05-10T15:58:23Z")

</div>

Hi @r.kita ,

I want to make sure I clearly understand what’s going on; the user is seeing a distorted ratio view on their smartphone or Macbook Pro? If it’s on the smartphone, are they experiencing the same issue when joining from a browser?

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![r.kita](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/r.kita/32/48361_2.png) [@r.kita](https://devforum.zoom.us/u/r.kita)\
**Post date:** [May 18, 2023, 12:16am UTC](https://devforum.zoom.us/t/wrong-aspect-ratio-for-first-rendervideo/88139/3 "2023-05-18T00:16:36Z")

</div>

Hi @Rehema,

Attached is the browser screen on the smartphone side.

The first is when there are two users.

[![output_2_uesrs](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/1/51452cc22f0a106629c145fcec552fd84024493c.gif)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/1/51452cc22f0a106629c145fcec552fd84024493c.gif)

The second is for a single user.  
 ![output_1_user](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/a/4af9917fd8a5137bf2d9c1931d6e13c471b5b6ed.gif)

Thanks

---

<div class="post-metadata">

**Author:** ![r.kita](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/r.kita/32/48361_2.png) [@r.kita](https://devforum.zoom.us/u/r.kita)\
**Post date:** [May 18, 2023, 4:32am UTC](https://devforum.zoom.us/t/wrong-aspect-ratio-for-first-rendervideo/88139/4 "2023-05-18T04:32:47Z")

</div>

Updating to v1.7.7 solved the problem. thank you very much!

---

<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:** [June 17, 2023, 2:33pm UTC](https://devforum.zoom.us/t/wrong-aspect-ratio-for-first-rendervideo/88139/5 "2023-06-17T14:33:45Z")

</div>

Closed on June 17, 2023, 2:33pm UTC

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