# Electron + WebSDK Screensharing not working (@zoomus/websdk v1.7.10)

**URL:** <https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996>\
**Category:** Web\
**Created:** [August 24, 2020, 5:45pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996 "2020-08-24T17:45:07Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![emaciel](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emaciel/32/10183_2.png) [@emaciel](https://devforum.zoom.us/u/emaciel)\
**Post date:** [August 24, 2020, 5:45pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/1 "2020-08-24T17:45:08Z")

</div>

**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 System Preferences for our electron app to make sure that we also have access to Screen Recording.

**Error**  
Unfortunately no error is thrown (even with dev tools set to pause on caught and uncaught exceptions) which means I am not able to get an error message for this issue

**Which version?**  
1.7.10

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

1. Go to [https://us02web.zoom.us/s/meetingNumber](https://us02web.zoom.us/s/meetingNumber)
2. Click on Join meeting as an attendee
3. Click on launch meeting
4. Click on join from browser
5. Enter name and join the meeting

Expected: in both browser and electron browserWindow we are able to start screen sharing  
Actual: in electron screensharing does not work

---

<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:** [August 26, 2020, 9:48pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/2 "2020-08-26T21:48:34Z")

</div>

Hey @emaciel,

Have you considered using the Electron SDK?

> **[Electron - Hybrid Frameworks Support - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/hybrid-frameworks/electron)**
>
> Electron Support
> 
> 
> 
> Electron is a framework used in creating native applications with web technologies like JavaScript, HTML, and CSS. Desktop app devel...

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![emaciel](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emaciel/32/10183_2.png) [@emaciel](https://devforum.zoom.us/u/emaciel)\
**Post date:** [August 27, 2020, 1:30pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/3 "2020-08-27T13:30:42Z")

</div>

Hey @tommy,

Yes we considered using the electron sdk but our main application is both a web app and an electron app so using the web sdk for zoom would allow us to have the same functionality in our electron app as in our web app without doing some custom bundling of the zoom sdk. Zoom is currently an integration that many clients may never even enable.

Are there known issues with share screen not working on the electron browserWindow? Seems like since it is using chromium it shouldn’t really be a problem but we still have not been able to find a workaround for it.

---

<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:** [August 28, 2020, 7:21pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/4 "2020-08-28T19:21:05Z")

</div>

Hey @emaciel,

Gotcha. Can you share a github repo with the issue so we can debug locally?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![emaciel](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emaciel/32/10183_2.png) [@emaciel](https://devforum.zoom.us/u/emaciel)\
**Post date:** [August 31, 2020, 5:23pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/5 "2020-08-31T17:23:25Z")

</div>

Hey @tommy

Here is a github repo with the reproduction:

> **[emaciel10/zoom-websdk-reproduction](https://github.com/emaciel10/zoom-websdk-reproduction)**
>
> Contribute to emaciel10/zoom-websdk-reproduction development by creating an account on GitHub.

I’ve included the electron-quick-start.dmg at the top level of the github repo in case you wish to be able to see the issue once the desktop app is signed and built using electron-builder.

I’ve added steps to reproduce in the README but i’ll include them here as well:

1. Create a new electron-builder.env file including the necessary APPLE\_API\_KEY and APPLE\_API\_ISSUER environment variables

2. Run `npm run build`

3. Install the newly created electron-quick-start.dmg application and see that although video and audio work, screenshare does not. No error message is logged but clicking the screenshare button in the zoom websdk seems to do nothing.

I’d be happy to hop on a call to go over the issue in more detail. I am currently using the electron quick start as a base and just opening a browserWindow to [https://us02web.zoom.us/wc/join/{meetingId}](https://us02web.zoom.us/wc/join/%7BmeetingId%7D) which seems to be using the zoom web sdk.

---

<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:** [September 3, 2020, 12:23am UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/6 "2020-09-03T00:23:06Z")

</div>

Hey @emaciel,

Thanks for sharing this. The [Zoom Web Client](https://support.zoom.us/hc/en-us/articles/214629443-Zoom-web-client) is actually different then the Zoom Web SDK.

Neither of which can be embedded in an iFrame.

Please use the [Zoom Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web). 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![emaciel](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/emaciel/32/10183_2.png) [@emaciel](https://devforum.zoom.us/u/emaciel)\
**Post date:** [September 3, 2020, 5:16pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/7 "2020-09-03T17:16:12Z")

</div>

Hey @tommy I’ve pushed up an updated version that routes to [zoom.hive.com](http://zoom.hive.com) and have also added a sample of our usage of the zoom websdk in the ZoomRoot directory.

The issue is the same there, you will notice that the browserWindow is now opening [zoom.hive.com](http://zoom.hive.com) and that if you open this exact same link in the browser you will have no trouble sharing your screen. When you run the reproduction you will see that it is using the zoom web sdk and that when running inside an electron browserWindow screen sharing does not work and unfortunately there are no errors or messages to help me do any further debugging.

---

<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:** [September 8, 2020, 3:02am UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/9 "2020-09-08T03:02:26Z")

</div>

Hey @emaciel,

I have just private messaged you so we can debug the issue easier.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zenhuwmank](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zenhuwmank/32/9377_2.png) [@zenhuwmank](https://devforum.zoom.us/u/zenhuwmank)\
**Post date:** [September 21, 2020, 2:42pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/11 "2020-09-21T14:42:32Z")

</div>

hi, is there any update on this issue?

and OOT, is there any issue if you bundle zoom WEBSDK in front-end side of electron app?, thanks!

---

<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:** [September 23, 2020, 9:02pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/12 "2020-09-23T21:02:54Z")

</div>

Hey @zenhuwmank,

We have identified the issue and are working on a fix.

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:** [October 24, 2020, 7:03am UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/13 "2020-10-24T07:03:00Z")

</div>

Closed on October 24, 2020, 7:03am UTC

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:** [September 23, 2021, 5:41pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/14 "2021-09-23T17:41:10Z")

</div>

Hey @emaciel , @zenhuwmank ,

I have an update for you. 🙂

Electron’s `desktopCapturer` API doesn’t provide a chromium style desktop picker dialog, so we would need to implement one.

> **[electron-sample-apps/desktop-capture at master · hokein/electron-sample-apps](https://github.com/hokein/electron-sample-apps/tree/master/desktop-capture)**
>
> master/desktop-capture

We are evaluating where and when we can fit this into our roadmap.

Thanks,  
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:** [December 1, 2022, 12:15am UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/15 "2022-12-01T00:15:51Z")

</div>

Opened on December 1, 2022, 12:15am UTC



---

<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:17am UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/16 "2022-12-01T00:17:07Z")

</div>

Hey @emaciel , @zenhuwmank ,

As of Meeting SDK, 2.9.5, Client View now supports screensharing within electron:

> [@Meeting SDK Web 2.9.5 release](https://devforum.zoom.us/t/meeting-sdk-web-2-9-5-release/79555):
>
> Hello Zoom Developers, here are the updates for the Meeting SDK Web 2.9.5 release slight_smileClient View Added Gallery view supports for Firefox with [SharedArrayBuffer enabled](https://marketplace.zoom.us/docs/sdk/overview/websdk-gallery-view/). Electron web view screen sharing support via shareSource option. Support for broadcasting audio messages to breakout rooms. Support to send or receive files in chat messages. Enhanced Waiting page to auto join meeting or webinar when started. onRetryCallback to provide the meeting UID, such that it can be used to …

-Tommy

---

<div class="post-metadata">

**Author:** ![aloksharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aloksharma/32/46803_2.png) [@aloksharma](https://devforum.zoom.us/u/aloksharma)\
**Post date:** [April 5, 2023, 1:39pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/17 "2023-04-05T13:39:16Z")

</div>

Hi Tommy,

How this shareSource can be implemented? Any example from the documentation where it’s explained, i want to share screen in electron app using web sdk

---

<div class="post-metadata">

**Author:** ![samudraganguly002017](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/samudraganguly002017/32/45827_2.png) [@samudraganguly002017](https://devforum.zoom.us/u/samudraganguly002017)\
**Post date:** [October 22, 2024, 3:23pm UTC](https://devforum.zoom.us/t/electron-websdk-screensharing-not-working-zoomus-websdk-v1-7-10/27996/18 "2024-10-22T15:23:36Z")

</div>

I am using the Meeting SDK version 3.8.10 (Client View). The “Share Screen” feature is working fine in the browser (Chrome, Edge, etc.), but it does NOT work when the same website is run through Electron. I have already raised the issue [here](https://devforum.zoom.us/t/web-sdk-screen-sharing-not-working-when-website-is-opened-through-electron-app/119482).
