# How to Share Screen in Electron SDK？

**URL:** <https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073>\
**Category:** Electron\
**Created:** [April 28, 2019, 11:16am UTC](https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073 "2019-04-28T11:16:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![8889999i](https://avatars.discourse-cdn.com/v4/letter/8/90ced4/32.png) [@8889999i](https://devforum.zoom.us/u/8889999i)\
**Post date:** [April 28, 2019, 11:16am UTC](https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073/1 "2019-04-28T11:16:56Z")

</div>

How to Share Screen in Electron SDK？

---

<div class="post-metadata">

**Author:** ![Wilmer\_Sun](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wilmer_sun/32/61_2.png) [@Wilmer\_Sun](https://devforum.zoom.us/u/Wilmer_Sun)\
**Post date:** [April 29, 2019, 1:27am UTC](https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073/2 "2019-04-29T01:27:53Z")

</div>

You have 2 ways to share screen.

1. Using the toolbar in the bottom of meeting UI.
2. If you want to use electron sdk interface to share a screen, you can refer to the function MeetingShare\_StartMonitorShare in the file zoom\_meeting\_share.js.

---

<div class="post-metadata">

**Author:** ![8889999i](https://avatars.discourse-cdn.com/v4/letter/8/90ced4/32.png) [@8889999i](https://devforum.zoom.us/u/8889999i)\
**Post date:** [April 29, 2019, 2:00am UTC](https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073/3 "2019-04-29T02:00:22Z")

</div>

I follow the second way, but throw an exception, you can see: Uncaught Exception:

TypeError: Meeting ASObj is not a function

At Object.MeetingShare\_StartMonitorShare (/Users/mxj/project/zoom-macsdk-electron-4.3.47193.0321/demo/lib/mac/meeting\_as\_bridge.js:24:17)

At Object.MeetingShare\_StartMonitorShare (/Users/mxj/project/zoom-macsdk-electron-4.3.47193.0321/demo/lib/zoom\_meeting\_share.js:53:31)

At share Desktop (/Users/mxj/project/zoom-macsdk-electron-4.3.47193.0321/demo/main\_mac.js:386:13)

At EventEmitter.ipcMain.on (/Users/mxj/project/zoom-macsdk-electron-4.3.47193.0321/demo/main\_mac.js:592:5)

At emitThree (events.js:136:13)

At EventEmitter. emit (events. js: 217:7)

(/Users/mxj/project/zoom-macsdk-electron-4.3.47193.0321/demo/node\_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/browser/api/web-contents.js:287:13)

At emitTwo (events.js:126:13)

At WebContents. emit (events. js: 214:7)

---

<div class="post-metadata">

**Author:** ![8889999i](https://avatars.discourse-cdn.com/v4/letter/8/90ced4/32.png) [@8889999i](https://devforum.zoom.us/u/8889999i)\
**Post date:** [April 29, 2019, 2:04am UTC](https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073/4 "2019-04-29T02:04:42Z")

</div>

![QQ20190429-100218](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/aec6a0eb7cb0cf5a80781c067e1ec6e995cad222.png) ![QQ20190429-100345](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/089e553789e8a9a6845c899d3dcb1a01132f41a2.png)

This is my code.

---

<div class="post-metadata">

**Author:** ![Wilmer\_Sun](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wilmer_sun/32/61_2.png) [@Wilmer\_Sun](https://devforum.zoom.us/u/Wilmer_Sun)\
**Post date:** [April 29, 2019, 2:20am UTC](https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073/5 "2019-04-29T02:20:27Z")

</div>

Well, it seems you are using MAC. Please ignore my comment. It is related to windows electron sdk.

---

<div class="post-metadata">

**Author:** ![8889999i](https://avatars.discourse-cdn.com/v4/letter/8/90ced4/32.png) [@8889999i](https://devforum.zoom.us/u/8889999i)\
**Post date:** [April 29, 2019, 2:24am UTC](https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073/6 "2019-04-29T02:24:51Z")

</div>

What should I do in Mac? Who should I ask?

---

<div class="post-metadata">

**Author:** ![Derain\_Yuan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/derain_yuan/32/558_2.png) [@Derain\_Yuan](https://devforum.zoom.us/u/Derain_Yuan)\
**Post date:** [April 29, 2019, 7:15am UTC](https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073/7 "2019-04-29T07:15:36Z")

</div>

Please refer to api ‘- (ZoomSDKError)startMonitorShare:(CGDirectDisplayID)monitorID’ in ZoomSDKASController.h.

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:16pm UTC](https://devforum.zoom.us/t/how-to-share-screen-in-electron-sdk/4073/8 "2020-08-21T18:16:38Z")

</div>

Closed on August 21, 2020, 6:16pm UTC


