# Electron + Component view Screensharing not working

**URL:** <https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255>\
**Category:** Electron\
**Created:** [April 7, 2023, 5:57am UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255 "2023-04-07T05:57:38Z")\
**Posts on this page:** 10\
**Page:** 1

<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 7, 2023, 5:57am UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/1 "2023-04-07T05:57:38Z")

</div>

**Description**  
Screen share not working with @zoomus/websdk/embedded on electron

**Which Electron Meeting SDK version?**  
electron@23.2.2

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

1. Join meeting
2. Click on screen share
3. Nothing is happening after that, no error on electron app console.

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Troubleshooting Routes**  
_The troubleshooting attempt types you’ve already exhausted, including testing with the appropriate sample app (found on [Zoom · GitHub](https://github.com/zoom))._

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

- Device: [Apple MacBook Pro (13-inch, M1, 2020)]
- OS: [macOS Monterey version 12.5]

**Additional context**  
I am using react and the componenet view like mentioned here ([GitHub - zoom/meetingsdk-react-sample: Use the Zoom Meeting SDK in React](https://github.com/zoom/meetingsdk-react-sample)), screen sharing is working fine in the browser but it’s not working in the electron app.

---

<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 7, 2023, 6:01am UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/2 "2023-04-07T06:01:30Z")

</div>

getting this error on electron console.

[2] [88083:0407/153705.366492:ERROR:dtls\_transport.cc(133)] DtlsTransport in connected state has incomplete TLS information

[2] [88083:0407/153705.366608:ERROR:dtls\_srtp\_transport.cc(215)] No DTLS-SRTP selected crypto suite

[2] [88083:0407/153705.410302:ERROR:dtls\_transport.cc(133)] DtlsTransport in connected state has incomplete TLS information

[2] [88083:0407/153705.410341:ERROR:dtls\_srtp\_transport.cc(215)] No DTLS-SRTP selected crypto suite

[2] [88083:0407/153746.505042:ERROR:dcsctp\_transport.cc(489)] DcSctpTransport10-\>OnError(error=UNSUPPORTED\_OPERATION, message=Can’t reset streams as the peer doesn’t support it).

[2] [88083:0407/153746.507239:ERROR:dcsctp\_transport.cc(489)] DcSctpTransport11-\>OnError(error=UNSUPPORTED\_OPERATION, message=Can’t reset streams as the peer doesn’t support it).

[2] [88083:0407/153754.196363:ERROR:dtls\_transport.cc(133)] DtlsTransport in connected state has incomplete TLS information

[2] [88083:0407/153754.196393:ERROR:dtls\_srtp\_transport.cc(215)] No DTLS-SRTP selected crypto suite

[2] [88083:0407/153754.218856:ERROR:dtls\_transport.cc(133)] DtlsTransport in connected state has incomplete TLS information

[2] [88083:0407/153754.218881:ERROR:dtls\_srtp\_transport.cc(215)] No DTLS-SRTP selected crypto suite

[2] [88080:0407/153811.815582:ERROR:CONSOLE(2)] “Electron sandboxed\_renderer.bundle.js script failed to run”, source: node:electron/js2c/sandbox\_bundle (2)

[2] [88080:0407/153811.815626:ERROR:CONSOLE(2)] “TypeError: object null is not iterable (cannot read property Symbol(Symbol.iterator))”, source: node:electron/js2c/sandbox\_bundle (2)

[2] [88567:0407/153832.124002:ERROR:dtls\_transport.cc(133)] DtlsTransport in connected state has incomplete TLS information

[2] [88567:0407/153832.124038:ERROR:dtls\_srtp\_transport.cc(215)] No DTLS-SRTP selected crypto suite

[2] [88567:0407/153832.128278:ERROR:dtls\_transport.cc(133)] DtlsTransport in connected state has incomplete TLS information

[2] [88567:0407/153832.128312:ERROR:dtls\_srtp\_transport.cc(215)] No DTLS-SRTP selected crypto suite

^C[2] /Users/aloksharma/Desktop/code/electron/react-electron-app/node\_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGINT

---

<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:** [April 7, 2023, 5:51pm UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/3 "2023-04-07T17:51:36Z")

</div>

Hey @aloksharma ,

Can you confirm you approved the screen recording system setting for your electron app ?

-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 8, 2023, 1:26pm UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/4 "2023-04-08T13:26:44Z")

</div>

Hey Tommy,

I wasn’t getting screen share pop up while developing the app, also I packaged the code and installed the app and gave it screen recording permission but screen share is still not working.

I will also share my code to you over dm, could you please take a look on it?

---

<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 9, 2023, 3:49am UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/5 "2023-04-09T03:49:10Z")

</div>

I am also sharing the the code, could you please take a look on it and help me understand why screenshare isn’t working with zoom web sdk in electron.

> **[GitHub - aloksharma1993/electron-zoom-demo](https://github.com/aloksharma1993/electron-zoom-demo)**
>
> Contribute to aloksharma1993/electron-zoom-demo development by creating an account on GitHub.

---

<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 15, 2023, 3:44am UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/6 "2023-04-15T03:44:42Z")

</div>

Hi Tommy,

It’s looking like a permission issue as you mentioned previously.

I am getting " ‘INVALID\_OPERATION’, reason: ‘user deny screen share’ error when using video sdk. So, sceen share is not working for me in both meeting and vide sdk.

Could you please help me understand how can I give permission to the electron app to share screen? I am not getting any prompt which asks me to give permission to my app for 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:** [April 17, 2023, 5:43pm UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/7 "2023-04-17T17:43:37Z")

</div>

Hey @aloksharma ,

That error means the user did not grant system access to share their screen within the browser/electron environment. Checkout this guide: [WebRTC Screensharing in electron - Stack Overflow](https://stackoverflow.com/questions/48685507/webrtc-screensharing-in-electron)

Best,  
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 19, 2023, 9:45pm UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/8 "2023-04-19T21:45:51Z")

</div>

Screen share worked in the Zoom client view SDK on **Electron** ([https://developers.zoom.us/docs/meeting-sdk/web/client-view/](https://developers.zoom.us/docs/meeting-sdk/web/client-view/)) by following these steps.

i) I used the ShareSource mentioned here ([meetingsdk-web/index.d.ts at master · zoom/meetingsdk-web · GitHub](https://github.com/zoom/meetingsdk-web/blob/master/index.d.ts#L1396)).

ii ) Passed the desktopCapturer object from electron main process to the react app ([desktopCapturer | Electron](https://www.electronjs.org/docs/latest/api/desktop-capturer))

There is no method similar to ShareSource in the component view SDK ([https://developers.zoom.us/docs/meeting-sdk/web/component-view/](https://developers.zoom.us/docs/meeting-sdk/web/component-view/)) and Zoom video SDK ([https://developers.zoom.us/docs/video-sdk/](https://developers.zoom.us/docs/video-sdk/)), so screen share is not currently possible in these two SDKs on Electron

@tommy Could you please confirm my understanding as it might save the time for folks building screen share on Electron apps? Can you please file a feature request if screen sharing is missing on component view and video sdk?

---

<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 24, 2023, 6:58am UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/9 "2023-04-24T06:58:31Z")

</div>

Confirmed with Tommy offline that Zoom has not yet developed this for Video SDK and Component View.

---

<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:** [May 24, 2023, 4:59pm UTC](https://devforum.zoom.us/t/electron-component-view-screensharing-not-working/86255/10 "2023-05-24T16:59:06Z")

</div>

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