# Black box remains on canvas after stopping render

**URL:** <https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434>\
**Category:** Web\
**Created:** [October 5, 2021, 3:26pm UTC](https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434 "2021-10-05T15:26:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickuk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nickuk/32/31345_2.png) [@nickuk](https://devforum.zoom.us/u/nickuk)\
**Post date:** [October 5, 2021, 3:26pm UTC](https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434/1 "2021-10-05T15:26:33Z")

</div>

**Description**  
After calling `mediaStream.stopRenderVideo(...)` a black box remains.

I’ve tried doing `mediaStream.stopRenderVideo(...).then(() => mediaStream.clearVideoCanvas(..))` which resolves without error, but the black box remains.

**Browser Console Error**  
No errors

**Which Web Video SDK version?**  
1.1.5

**Device (please complete the following information):**  
macOS Big Sur  
Chrome 94

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 5, 2021, 9:38pm UTC](https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434/2 "2021-10-05T21:38:48Z")

</div>

Hey @nickuk ,

It looks like we did push an update that fixed this issue:

> [@Black box on calling stopRenderVideo](https://devforum.zoom.us/t/black-box-on-calling-stoprendervideo/52629/2):
>
> Hey @sri.soham Thanks for your feedback. We have found the problem and it will be fixed in the next release. Currently, you can try to hide the canvas element when all videos stopped as a workaround. Thanks Vic

However, maybe it is a different issue. As a workaround you can try to hide / destroy the canvas with CSS or JS.

Can you provide a screenshot and a screenshot of the black box canvas in the browser DOM ?

CC @vic.yang

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nickuk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nickuk/32/31345_2.png) [@nickuk](https://devforum.zoom.us/u/nickuk)\
**Post date:** [October 6, 2021, 10:35am UTC](https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434/3 "2021-10-06T10:35:25Z")

</div>

Hi @tommy / @vic.yang,

Sure, see below:

 ![Screenshot 2021-10-06 at 11.31.11](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/0/80768b348d69cbcffe5bbdad31c3cbee50049a4a.png)

Dev tools screenshot:  
 ![Screenshot 2021-10-06 at 11.31.22](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/7/87ae05d5a684177e547640374520c693892a7546.png)

The canvas is positioned absolutely to 0, 0, has a width of 100vw, a height of 100vh, and a background color of transparent via stylesheet.

Thanks,

Nick

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 7, 2021, 8:07pm UTC](https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434/4 "2021-10-07T20:07:37Z")

</div>

Thanks @nickuk .

@vic.yang , is there a recommend way to destroy the canvas, or is this a bug we can fix?

-Tommy

---

<div class="post-metadata">

**Author:** ![nickuk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nickuk/32/31345_2.png) [@nickuk](https://devforum.zoom.us/u/nickuk)\
**Post date:** [October 12, 2021, 8:20am UTC](https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434/5 "2021-10-12T08:20:56Z")

</div>

Hi @tommy / @vic.yang,

Just an extra note to help you along on this…

It appears as though maybe the buffer for the canvas isn’t being flushed or something similar. The reason I say this is that when you resize the window, which adjusts the canvas’ height and width, then the black box disappears.

Thanks,

Nick

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 12, 2021, 4:57pm UTC](https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434/6 "2021-10-12T16:57:13Z")

</div>

Thanks for sharing that @nickuk !

We will take a look. 🙂 (ZOOM-315217)

-Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 4, 2021, 10:31pm UTC](https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434/7 "2021-11-04T22:31:10Z")

</div>

Hey @nickuk ,

We just released 1.1.6 with the fix:

> [@Web Video SDK version 1.1.6](https://devforum.zoom.us/t/web-video-sdk-version-1-1-6/59821#fixed-2):
>
> Hello Zoom Developers, here are the updates for the Web Video SDK version 1.1.6 release : Added mirrorVideo API call (see the [Web Video SDK reference documentation](https://marketplace.zoom.us/docs/sdk/video/web/reference) for more details) Fixed underlyingColor option not working properly after calling stopRenderVideo SDK points to the correct dependencies for this version (see [Web Video SDK 1.1.5 Dependency Work Around](https://devforum.zoom.us/t/web-video-sdk-1-1-5-dependency-work-around/57969) for issue with previous version) Enhanced startVideo API call with mirror option startAudio API call with speakerOnly option to …

Thanks,  
Tommy

---

<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:** [December 5, 2021, 8:31am UTC](https://devforum.zoom.us/t/black-box-remains-on-canvas-after-stopping-render/58434/8 "2021-12-05T08:31:30Z")

</div>

Closed on December 5, 2021, 8:31am UTC

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