# Screen sharing button not working in Web SDK

**URL:** <https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554>\
**Category:** Web\
**Created:** [January 14, 2021, 1:13pm UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554 "2021-01-14T13:13:11Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![matti](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matti/32/17373_2.png) [@matti](https://devforum.zoom.us/u/matti)\
**Post date:** [January 14, 2021, 1:13pm UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/1 "2021-01-14T13:13:11Z")

</div>

**Description**  
On Chrome 87.0.4280.141 (Official Build) (x86\_64) on macOS 10.15.7, the “Share Screen” button in the Zoom Web SDK (1.8.6) does not seem to work.

**Error**

- When clicking on the button, nothing happens. It was expected that a dialog would appear.

**Which version?**  
1.8.6

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Run the sample web application locally.
2. Click on “Join Audio by Computer”
3. Click on “Share Screen”

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

- Device: MacBook Pro
- OS: macOS
- Version: 10.15.7
- Browser: Chrome 87.0.4280.141

**Additional context**

The SDK is embedded within an IFRAME in a React application, it is hosted via a HTTPS connection.  
In theory, the Content Security Policy on the CDN or the IFRAME might limit the access to certain browser APIs, but the issue can be reproduced locally - independently whether the SDK is displayed standalone or within an IFRAME.

If there is a possibility to hide the screen sharing functionality, this would resolve this issue as well (for my use case).

---

<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:** [January 14, 2021, 10:14pm UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/2 "2021-01-14T22:14:55Z")

</div>

Hey @matti ,

We are aware of this, and have seen this happen also when the Web SDK is embedded in a web view:

> [@Electron + WebSDK Screensharing not working (@zoomus/websdk v1.7.10)](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996):
>
> Description We are attempting to use the zoom websdk in an electron app. Specifically we are attempting to open a new BrowserWindow in electron with the url pointing to our zoom websdk app. Right now in browser the audio, video, and screensharing functionalities are working as expected. In our electron app, we have had to request permissions for access to camera and microphone on ios but now audio and video are working properly. Screensharing still does not work even though we have also updated…

Since the Web SDK is not designed to work within an iFrame, my best suggestion for you is to use it outside of the iFrame and screen sharing should work. 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![matti](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matti/32/17373_2.png) [@matti](https://devforum.zoom.us/u/matti)\
**Post date:** [January 15, 2021, 6:09am UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/3 "2021-01-15T06:09:39Z")

</div>

Hello @tommy , thank you for the message.

I can reproduce the issue also when the SDK is running outside an IFRAME. The button does not do anything.

In order to get more information, I would need additional information on the root cause as no errors are logged. Is it due to a lack of permissions inside an IFRAME? Are you aware of a Content Security Policy preventing access to screen sharing?

---

<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:** [January 15, 2021, 10:18pm UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/4 "2021-01-15T22:18:11Z")

</div>

Hey @matti ,

During the initial screen share, have you provided access for your browser? Perhaps you can check your computer and browser permissions.

 ![Screen Shot 2020-12-01 at 10.05.30 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/d/4de671efe162ae1103ba40b512b784199e5e3c1e.jpeg)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![matti](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matti/32/17373_2.png) [@matti](https://devforum.zoom.us/u/matti)\
**Post date:** [January 19, 2021, 5:30am UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/5 "2021-01-19T05:30:52Z")

</div>

Hello @tommy, thank you for the message. All browsers tested have access to screen sharing.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 20, 2021, 2:06am UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/6 "2021-01-20T02:06:53Z")

</div>

Hey @matti,

I wasn’t able to reproduce this issue with our [Sample Web App](https://github.com/zoom/sample-app-web) when serving over HTTPS. Do you see the same issue when using the sample app? If not, are you able to share a public git repo or a snippet of the code that you’re using to test this?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![matiasp](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@matiasp](https://devforum.zoom.us/u/matiasp)\
**Post date:** [January 21, 2021, 1:46pm UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/7 "2021-01-21T13:46:55Z")

</div>

@MaxM @matti 'm seeing this same issue on my side as well.

It’s working perfectly in a React application, but not inside an Electron application.

Zoom Web SDK Version: 1.8.5 and 1.8.6 (both have the issue)

Thanks

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 21, 2021, 9:34pm UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/8 "2021-01-21T21:34:13Z")

</div>

Hey @matti,

Thank you for reaching out to the Zoom Developer Forum. We have a separate SDK when working with Electron. Have you followed our steps to [set up and install the electron SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/electron/download-and-install)? You may also be interested in the [Electron Sample App](https://github.com/zoom/zoom-sdk-electron) that we have.

If you continue to have issues, I recommend posting in the #client-desktop-sdk:electron category so that a subject matter expert can assist you.

I hope that helps!

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![matti](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/matti/32/17373_2.png) [@matti](https://devforum.zoom.us/u/matti)\
**Post date:** [January 22, 2021, 6:58pm UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/9 "2021-01-22T18:58:55Z")

</div>

Hello!

Thank you for the help. I have found out eventually that screen sharing in the settings of the Zoom meeting itself was disabled.

Nevertheless, @MaxM : The Zoom SDK behaves in this case differently than the native client, it ALWAYS shows the “Share Screen” button independently of the meeting settings.

I would regard this as a bug.

Regards

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 23, 2021, 12:23am UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/10 "2021-01-23T00:23:15Z")

</div>

Hey @matti,

Thank you for the update. I’m glad to hear that you were able to resolve your issue! If you want to hide the screenshare button when the meeting starts, you can set the `screenShare` field on the `init()` function to `false` when initializing the meeting.

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/d/4ddc5035c9bbb55339aab3f0c7d6442bdcfdf5b4.png)

Due to this, I wouldn’t say this is a bug but more of a missing feature. If you would like this feature to be considered for a future release, I recommend posting in the #feature-requests category.

Thanks,  
Max

---

<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, 2021, 10:23am UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/11 "2021-02-22T10:23:28Z")

</div>

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

---

<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:** [December 1, 2022, 12:19am UTC](https://devforum.zoom.us/t/screen-sharing-button-not-working-in-web-sdk/40554/12 "2022-12-01T00:19:39Z")

</div>

Hey @matiasp , @matti ,

Screensharing within Electron is now supported in Client View 2.9.5:

> [@Electron + WebSDK Screensharing not working (@zoomus/websdk v1.7.10)](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/16):
>
> Hey @emaciel , @zenhuwmank , As of Meeting SDK, 2.9.5, Client View now supports screensharing within electron: -Tommy

Best,  
Tommy
