# Share Screen functionality is not working as expected in version 1.12.17

**URL:** <https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924>\
**Category:** Video SDK\
**Created:** [July 7, 2025, 1:28pm UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924 "2025-07-07T13:28:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sharma/32/70037_2.png) [@Sharma](https://devforum.zoom.us/u/Sharma)\
**Post date:** [July 7, 2025, 1:28pm UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924/1 "2025-07-07T13:28:36Z")

</div>

Hi Team,  
I’m Sharma S S, developer from WeKan Enterprises. I’m trying to integrate zoom-video-sdk of version 1.12.17 into our application, after that observing that camera, audio are working as expected but screen share functionality is not working as expected.

Issue:  
When attempting to start screen sharing using the Zoom Video-SDK for Web, I consistently get the following runtime error:  
Environment:

- @zoom /videosdk: 2.2.0 (also tested with 1.12.17)

- React: 18.2.0

- react-dom: 18.2.0

- Browser: Chrome (latest), also tested on Firefox/Edge

- OS: Windows 10

- Build tools: react-scripts 5.0.1, TypeScript 5.5.x

- npm version : 10.8.2

Attaching below the error that I’m facing :

Uncaught runtime errors:  
ERROR  
Cannot read properties of null (reading ‘addEventListener’)  
TypeError: Cannot read properties of null (reading ‘addEventListener’)  
at http: // localhost :3000/lib/js\_media.min.js:1:421618  
at new Promise ()  
at e.Start\_Desktop\_Sharing (http: // localhost: 3000/lib/js\_media.min.js:1:418478)  
at e.handleDesktopCapture (http :// localhost :3000/lib/js\_media.min.js:1:440421)

Here are the below things that I’ve tried

- I am passing a real, visible, and properly sized element (with width=“800” and height=“600”) to the SDK as the target for screen sharing (WebCodecs is enabled).

- I have confirmed via console logs that the element exists, is attached to the DOM, and has the correct size at the moment the SDK is called.

- The ref flow matches the working Zoom sample (My-meetings), and the element is not null or undefined.

- I have tried both rendering the in the React tree and attaching it directly to document.body.

- I have tried using a \< canvas \> as well, but the SDK requires a when WebCodecs is enabled.

- The error persists across browsers and after cleaning/reinstalling all dependencies.

#Questions:

- Is there any additional requirement or timing consideration for the DOM element passed to startShareScreen?

- Are there any known issues with the SDK version 2.2.0 (or 1.12.17) and React 18?

- Is there a recommended way to ensure the element is “ready” for the SDK, beyond what is described above?

- Are there any browser-specific quirks or additional initialization steps required?

Please let me know if there is any info regarding the above issue or anything that needs to be tried from my end.

Thanks!

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [July 8, 2025, 3:24am UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924/2 "2025-07-08T03:24:05Z")

</div>

Hey @Sharma

Thanks for your feedback.

Could you share some problematic session IDs with us for troubleshooting purposes?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sharma/32/70037_2.png) [@Sharma](https://devforum.zoom.us/u/Sharma)\
**Post date:** [July 9, 2025, 12:50pm UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924/3 "2025-07-09T12:50:59Z")

</div>

Hi @vic.yang  
Thanks for writing back.  
sharing problematic session id below  
6825a18ce46da59fc0d7e4a0

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [July 10, 2025, 2:06am UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924/4 "2025-07-10T02:06:49Z")

</div>

Hi @Sharma

> 6825a18ce46da59fc0d7e4a0

This doesn’t appear to be a valid session ID. You can obtain it from the Web Portal by navigating to Dashboard → Past Sessions or Live Sessions. Alternatively, if you’re currently in a session, you can retrieve it using `client.getSessionInfo().sessionId`

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sharma/32/70037_2.png) [@Sharma](https://devforum.zoom.us/u/Sharma)\
**Post date:** [July 10, 2025, 12:44pm UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924/5 "2025-07-10T12:44:17Z")

</div>

Hi @vic.yang ,  
Got it now  
Sharing the session ids here :

08f24fa9777dbb88eec1  
fwZmyC19Rn+ddFRfNQkKiA==

08f24fa9777dbb88eec1  
O5x2LXnZSbmnWNzmTuO2YQ==

please let me know if any further info is required

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [July 11, 2025, 1:56am UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924/6 "2025-07-11T01:56:12Z")

</div>

Hi @Sharma

> fwZmyC19Rn+ddFRfNQkKiA==  
> O5x2LXnZSbmnWNzmTuO2YQ==

After analyzing the logs, we found that you may have forgotten to update the dependent assets and are still using a very old version. You can manually copy the contents from `node_modules/@zoom/videosdk/dist/lib` to the `public/lib` directory.

However, we still recommend not setting the second parameter of `client.init`, so that the Video SDK uses the dependent assets from the Zoom CDN, which ensures version consistency.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sharma/32/70037_2.png) [@Sharma](https://devforum.zoom.us/u/Sharma)\
**Post date:** [July 16, 2025, 5:37pm UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924/7 "2025-07-16T17:37:29Z")

</div>

Hi @vic.yang  
Thank you so much your suggestion worked and I’m able to implement screen share in my application with chrome but I’m facing an issue with safari browser.  
The screen share button when i click ‘share screen’ option isn’t loading.  
please find the session id below -  
08f24fa9777dbb88eec1  
J2AZkODiS/um9Bgdz8nGdw==

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [July 17, 2025, 6:45am UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924/8 "2025-07-17T06:45:36Z")

</div>

Hi @Sharma

> J2AZkODiS/um9Bgdz8nGdw==

We found in the logs that when calling the `startShareScreen` method, it returned

> "type: INVALID\_PARAMETERS with the reason: “Expected to accept HTMLCanvasElement, but actual it is HTMLVideoElement.”

It seems that the wrong element might have been passed, which caused screen sharing to fail.

Please refer to the usage guide in this article:

> **[Video SDK - web - Core features](https://developers.zoom.us/docs/video-sdk/web/share/#start-screen-sharing)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![Sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sharma/32/70037_2.png) [@Sharma](https://devforum.zoom.us/u/Sharma)\
**Post date:** [July 17, 2025, 6:57am UTC](https://devforum.zoom.us/t/share-screen-functionality-is-not-working-as-expected-in-version-1-12-17/134924/9 "2025-07-17T06:57:51Z")

</div>

sure @vic.yang  
Thanks a lot. It helped me resolve the issue
