# Video on Canvas Getting Cropped in New v2.1.0 Update

**URL:** <https://devforum.zoom.us/t/video-on-canvas-getting-cropped-in-new-v2-1-0-update/125003>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [January 21, 2025, 10:23am UTC](https://devforum.zoom.us/t/video-on-canvas-getting-cropped-in-new-v2-1-0-update/125003 "2025-01-21T10:23:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tigran](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tigran/32/54890_2.png) [@tigran](https://devforum.zoom.us/u/tigran)\
**Post date:** [January 21, 2025, 10:23am UTC](https://devforum.zoom.us/t/video-on-canvas-getting-cropped-in-new-v2-1-0-update/125003/1 "2025-01-21T10:23:29Z")

</div>

## Issue: Video in Preview is Cropped When Using the New Preview Feature in v2.1.0

I am encountering an issue with the Zoom Video SDK while implementing the preview feature. I’m using the documentation available under the **Preview Camera** section in the Zoom Video SDK Web documentation.

### Issue Details

Previously, I was rendering the preview video using a **Canvas** element with background blur enabled and a **Video** tag when background blur was disabled. This setup worked okay, and the video was displayed as expected in both scenarios.

After updating to **v2.1.0** , I replaced my implementation with the following custom tags as per the new setup:

```auto
<video-player-container class="local-preview-container">
  <video-player id="local-preview-video"></video-player>
</video-player-container>

```

After this change, I noticed that the video in the preview is being cropped in both cases:

1. When background blur is enabled.
2. When background blur is not enabled.

### Possible Related Issue

I believe this behavior may be related to an existing issue reported in the Zoom Developer Forum under the title: **“Zoom Video SDK Crops the Video Preview with SharedArrayBuffer Enabled.”**

### Note

I have also tried replacing the **Video** and **Canvas** elements in the Zoom Video SDK Web Sample repository available on GitHub. The exact same issue is observed in this sample implementation as well.

---

<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:** [January 23, 2025, 8:24am UTC](https://devforum.zoom.us/t/video-on-canvas-getting-cropped-in-new-v2-1-0-update/125003/2 "2025-01-23T08:24:36Z")

</div>

Hey @tigran

Thanks for your feedback.

The Video SDK Web sample app is updated, could you help try it again?

**Hint:**  
To enable the video player during a local run, add `useVideoPlayer=1` as a query parameter in the URL.

> <https://github.com/zoom/videosdk-web-sample/blob/2b9c19b755e7819c2559aff4fd96dcb76b3fd690/src/feature/preview/preview.tsx#L116>

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:** [February 22, 2025, 6:25pm UTC](https://devforum.zoom.us/t/video-on-canvas-getting-cropped-in-new-v2-1-0-update/125003/3 "2025-02-22T18:25:25Z")

</div>

Closed on February 22, 2025, 6:25pm UTC

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