# Problem while cancelling the screen sharing

**URL:** <https://devforum.zoom.us/t/problem-while-cancelling-the-screen-sharing/75429>\
**Category:** Web\
**Created:** [September 5, 2022, 6:20pm UTC](https://devforum.zoom.us/t/problem-while-cancelling-the-screen-sharing/75429 "2022-09-05T18:20:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvr](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kvr](https://devforum.zoom.us/u/kvr)\
**Post date:** [September 5, 2022, 6:20pm UTC](https://devforum.zoom.us/t/problem-while-cancelling-the-screen-sharing/75429/1 "2022-09-05T18:20:16Z")

</div>

When the user tries to share the screen and selects the “Cancel” button in the chrome screen sharing popup, a black rectangle is displayed in the zoom video. Is there any event fired when the user selects the “Cancel” button? The event can be used to rerender the video tiles.

Web Video SDK version  
1.3.9

Steps to reproduce the behavior:

1. Call startShareScreen() API
2. Chrome screen sharing popup will be displayed.
3. User selects “Cancel” button.
4. User will be able to see a black rectangle in the zoom video

- OS: Windows
- Browser: Chrome
- Browser Version :105.0.5195.102 (Official Build) (64-bit)

---

<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:** [September 6, 2022, 1:41am UTC](https://devforum.zoom.us/t/problem-while-cancelling-the-screen-sharing/75429/2 "2022-09-06T01:41:55Z")

</div>

Hey @kvr

Thanks for your feedback.

Did you use the Video SDK Web 1.4.0 ? We have not released version 1.3.9.

After calling the `startShareScreen`, it will return a promise, if the user clicks the ‘Cancel’ button, the promise will reject for the reason “user deny screen share”.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![kvr](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kvr](https://devforum.zoom.us/u/kvr)\
**Post date:** [September 6, 2022, 12:32pm UTC](https://devforum.zoom.us/t/problem-while-cancelling-the-screen-sharing/75429/3 "2022-09-06T12:32:39Z")

</div>

Hi Vic,

Thanks for the solution. It works.

Thanks  
Krishnan

---

<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:** [October 7, 2022, 6:29am UTC](https://devforum.zoom.us/t/problem-while-cancelling-the-screen-sharing/75429/5 "2022-10-07T06:29:11Z")

</div>

Closed on October 7, 2022, 6:29am UTC

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