# How to handle Chrome "Stop Sharing" when using Zoom stream startShareView()

**URL:** <https://devforum.zoom.us/t/how-to-handle-chrome-stop-sharing-when-using-zoom-stream-startshareview/52065>\
**Category:** Web\
**Created:** [June 9, 2021, 6:42am UTC](https://devforum.zoom.us/t/how-to-handle-chrome-stop-sharing-when-using-zoom-stream-startshareview/52065 "2021-06-09T06:42:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joecodingjourney](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@joecodingjourney](https://devforum.zoom.us/u/joecodingjourney)\
**Post date:** [June 9, 2021, 6:42am UTC](https://devforum.zoom.us/t/how-to-handle-chrome-stop-sharing-when-using-zoom-stream-startshareview/52065/1 "2021-06-09T06:42:00Z")

</div>

**Description**  
Need a way to handle an event when the user click the Chrome “Stop Sharing”.  
When the user click Chrome “Stop Sharing”, the screen sharing is just left with the static image.

Is there a way to listen to that event callback so that I can clear the canvas? or,  
How do you hide that Chrome “Stop Sharing” popup?

**Which Web Video SDK version?**  
Zoom Instant-sdk-web-1.0.3

**To Reproduce(If applicable)**

```auto
1. const stream = client.getMediaStream();
2. stream.startShareView("canvasId");
3. screen is shared on the "canvasId". But, on Chrome, it also displays a pop up extension of "Stop Sharing".
4. Clicking on Chrome "Stop Sharing" button will leave the canvas with a static image.

```

**Screenshots**  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/8/88f8d7729465b949c5349269b1788820a5c50039.png)

---

<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:** [June 10, 2021, 2:56am UTC](https://devforum.zoom.us/t/how-to-handle-chrome-stop-sharing-when-using-zoom-stream-startshareview/52065/2 "2021-06-10T02:56:31Z")

</div>

Hey @joecodingjourney

`passively-stop-share` event will fit your need.

And the Chrome screen share bar cannot be hidden.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![joecodingjourney](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@joecodingjourney](https://devforum.zoom.us/u/joecodingjourney)\
**Post date:** [June 10, 2021, 5:27am UTC](https://devforum.zoom.us/t/how-to-handle-chrome-stop-sharing-when-using-zoom-stream-startshareview/52065/3 "2021-06-10T05:27:45Z")

</div>

Thanks Vic! this will do the job.

---

<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:** [June 10, 2021, 5:01pm UTC](https://devforum.zoom.us/t/how-to-handle-chrome-stop-sharing-when-using-zoom-stream-startshareview/52065/4 "2021-06-10T17:01:49Z")

</div>

Thanks @vic.yang ! 🙂

-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:** [July 11, 2021, 3:02am UTC](https://devforum.zoom.us/t/how-to-handle-chrome-stop-sharing-when-using-zoom-stream-startshareview/52065/5 "2021-07-11T03:02:26Z")

</div>

Closed on July 11, 2021, 3:02am UTC

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