# ZoomMtg.startScreenShare with specific window is not working with Electron + Web SDK client view

**URL:** <https://devforum.zoom.us/t/zoommtg-startscreenshare-with-specific-window-is-not-working-with-electron-web-sdk-client-view/137617>\
**Category:** Web\
**Tags:** sdk\
**Created:** [September 24, 2025, 5:42am UTC](https://devforum.zoom.us/t/zoommtg-startscreenshare-with-specific-window-is-not-working-with-electron-web-sdk-client-view/137617 "2025-09-24T05:42:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![InMVC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/inmvc/32/63948_2.png) [@InMVC](https://devforum.zoom.us/u/InMVC)\
**Post date:** [September 24, 2025, 5:42am UTC](https://devforum.zoom.us/t/zoommtg-startscreenshare-with-specific-window-is-not-working-with-electron-web-sdk-client-view/137617/1 "2025-09-24T05:42:24Z")

</div>

I’m trying to implement **specific window screen sharing** in my Electron app using the **Zoom Web SDK (client view)**. I’m attempting to pass the `sourceId` directly into `ZoomMtg.startScreenShare`, but it’s not working as expected.

Here’s the code I’m using:

```auto
async function handleZoomScreenShare(data) {
  try {
    const sources = await electron.ipcRenderer.invoke('get-screen-sharing-sources');
    console.log('Available sources:', sources);

    const screenSource = sources.find(source => source.id === data?.id);
    console.log('Selected screen source:', screenSource);

    if (!screenSource) {
      console.error('Screen source not found');
      return;
    }

    console.log('Is Zoom startScreenShare available:', typeof ZoomMtg.startScreenShare);

    // Attempt to start screen share with a specific sourceId
    ZoomMtg.startScreenShare({
      sourceId: screenSource.id,
      hideShareAudioOption: false,
      optimizedForSharedVideo: true,
      success: () => {
        console.log('✅ Screen share started successfully');
      },
      error: (err) => {
        console.error('❌ Screen share error:', err);
      }
    });

  } catch (error) {
    console.error('Error in handleZoomScreenShare:', error);
  }
}

```

Despite passing a valid `sourceId`, the screen share does not start. Is there something missing or a limitation with `ZoomMtg.startScreenShare` in the Web SDK when used inside Electron? Any guidance or alternative approach would be appreciated.

Versions that i am using:  
Electron Version: v38.1.0  
Zoom meeting SDK: v4.0.7

---

<div class="post-metadata">

**Author:** ![InMVC](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/inmvc/32/63948_2.png) [@InMVC](https://devforum.zoom.us/u/InMVC)\
**Post date:** [September 26, 2025, 5:41am UTC](https://devforum.zoom.us/t/zoommtg-startscreenshare-with-specific-window-is-not-working-with-electron-web-sdk-client-view/137617/2 "2025-09-26T05:41:26Z")

</div>

@tommy  
Could you please look on it and help me.

---

<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:** [September 26, 2026, 5:42am UTC](https://devforum.zoom.us/t/zoommtg-startscreenshare-with-specific-window-is-not-working-with-electron-web-sdk-client-view/137617/3 "2026-09-26T05:42:28Z")

</div>

Closed on September 26, 2026, 5:42am UTC

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