# Stop Preview Doesn't Clear Frame in 2.2.0

**URL:** <https://devforum.zoom.us/t/stop-preview-doesnt-clear-frame-in-2-2-0/135093>\
**Category:** Web\
**Created:** [July 11, 2025, 4:42am UTC](https://devforum.zoom.us/t/stop-preview-doesnt-clear-frame-in-2-2-0/135093 "2025-07-11T04:42:32Z")\
**Posts on this page:** 3\
**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:** [July 11, 2025, 4:42am UTC](https://devforum.zoom.us/t/stop-preview-doesnt-clear-frame-in-2-2-0/135093/1 "2025-07-11T04:42:32Z")

</div>

**Description**  
When upgrading from version 2.1.0 to version 2.2.0, we encountered the following issue after stopping the camera preview:

Previously, when stopping the video preview, the canvas would turn completely black.  
Currently, after stopping the video preview, the canvas retains the last video frame —or in some cases, it turns completely red.

**Which Web Video SDK version?**  
2.2.0

**Video SDK Code Snippets**

```auto
  async startPreviewVideo(imageUrl) {
      this.localVideoTrack = ZoomVideo.createLocalVideoTrack(deviceId);
      if (imageUrl) {
        await this.localVideoTrack.start(document.querySelector('#local-preview-video'), { imageUrl: imageUrl });
      } else {
        await this.localVideoTrack.start(document.querySelector('#local-preview-video'));
      }
  }

```

```auto
async stopPreviewVideo(unsubscribeLockScreen) {
      if (this.localVideoTrack) {
        await this.localVideoTrack.stop();
      }
      if (unsubscribeLockScreen) {
        this.stopVideoTrack();
      }
}

```

**Screenshots**  
Previous (2.1.0):

 ![Screenshot 2025-07-11 at 11.38.28](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/b/4ba65840d0cf36faf952920ab32ebec28d2c991a.png)

Current (2.2.0):

 ![Screenshot 2025-07-11 at 11.37.38](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/5/95b00fae03bbe9bcbf0d630d11d67e4b9d38d835.png)  
 ![Screenshot 2025-07-11 at 11.36.56](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/0/90d4770d72d84d3930768d47f3fbdcc54c532541.png)

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

- OS: Mac 15.1
- Browser: Chrome
- Browser Version: 138

---

<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:** [July 14, 2025, 6:59am UTC](https://devforum.zoom.us/t/stop-preview-doesnt-clear-frame-in-2-2-0/135093/2 "2025-07-14T06:59:33Z")

</div>

Hey @lmtruong1512

Thanks for your feedback.

We’ve identified the issue in Video SDK Web 2.2.0, and it has been resolved in the latest version (Video SDK Web 2.2.5).

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:** [July 14, 2026, 7:00am UTC](https://devforum.zoom.us/t/stop-preview-doesnt-clear-frame-in-2-2-0/135093/3 "2026-07-14T07:00:21Z")

</div>

Closed on July 14, 2026, 7:00am UTC

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