# WEB Sdk share screen not working

**URL:** <https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497>\
**Category:** Web\
**Created:** [November 4, 2019, 10:15am UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497 "2019-11-04T10:15:40Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeffD](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@JeffD](https://devforum.zoom.us/u/JeffD)\
**Post date:** [November 4, 2019, 10:15am UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/1 "2019-11-04T10:15:40Z")

</div>

Hi.  
I’m using Zoom Web SDK to jon a meeting. When I use share screen get error “Cannot read property ‘getDisplayMedia’ of undefined”

 ![share-screen](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8425269923e9e57e383ec9a4e2b31cb69eae63a9.jpeg)

I use Google Chrome Version 75.0.3770.  
I also checked on other PCs and browser versions, but the result is the same.

What is the problem? Any help would be greatly appreciated

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [November 4, 2019, 6:55pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/2 "2019-11-04T18:55:41Z")

</div>

Hi @JeffD,

Which version of the WebSDK are you using, CDN, Local or NPM? Also what is the meeting ID that you’re using?

Thanks

---

<div class="post-metadata">

**Author:** ![JeffD](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@JeffD](https://devforum.zoom.us/u/JeffD)\
**Post date:** [November 5, 2019, 7:43am UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/3 "2019-11-05T07:43:44Z")

</div>

I use CDN v1.6. also check 1.5 but the error is the same.  
Meeting ID 304171270

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:** [November 6, 2019, 11:05pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/5 "2019-11-06T23:05:58Z")

</div>

Hey @JeffD,

After looking into this we were unable to reproduce the error. Can you please share your code so we can debug and provide steps to reproduce the error?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [November 7, 2019, 6:47pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/6 "2019-11-07T18:47:56Z")

</div>

Hi Jeff,

While we were troubleshooting, we weren’t able to see why screensharing wasn’t working, However, we used your credentials and meeting ID with a fresh install of our [sample web app](https://github.com/zoom/sample-app-web) 1.6.0 and it works(see screenshot below). Looking at the code it seems that developers are re-organizing the structure of the index.js file which is out of the scope of our support.

Can you check with the developers and see if the screen share works when redownloading the WebSDK as is without re organizing the code base?

 ![39%20AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1e2af561cb8aa3d5c9aff8a440d02a7e74203773.png)

---

<div class="post-metadata">

**Author:** ![farooq.ahmed](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@farooq.ahmed](https://devforum.zoom.us/u/farooq.ahmed)\
**Post date:** [April 14, 2020, 2:54pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/7 "2020-04-14T14:54:16Z")

</div>

Hi. I implemented websdk in my website. Join Audio by Computer and Screen sharing is not working please suggest help

 ![screen](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/9600927f85f1456a80cbcd63527cf8f39ae80e5d.jpeg)

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [April 14, 2020, 7:11pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/8 "2020-04-14T19:11:35Z")

</div>

Hi @farooq.ahmed,

Can you open the console log and see if any errors are showing up? Also, if you have deployed this on your dev server, make sure to use use `https` as it’s a requirement for browsers to allow access to your mic and camera.

---

<div class="post-metadata">

**Author:** ![farooq.ahmed](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@farooq.ahmed](https://devforum.zoom.us/u/farooq.ahmed)\
**Post date:** [April 15, 2020, 4:47am UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/9 "2020-04-15T04:47:13Z")

</div>

thanks for your response. I am getting this error.

Uncaught TypeError: Cannot read property ‘getDisplayMedia’ of  
undefined  
at handleOnClick (zoom-meeting-1.7.5.min.js:2)  
at Object.sh (react-dom.min.js:164)  
at rh (react-dom.min.js:13)  
at uh (react-dom.min.js:13)  
at Ge (react-dom.min.js:15)  
at vh (react-dom.min.js:165)  
at ad (react-dom.min.js:15)  
at cd (react-dom.min.js:17)  
at Uh (react-dom.min.js:39)  
at Zg (react-dom.min.js:158)

---

<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 15, 2020, 6:20am UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/10 "2020-04-15T06:20:28Z")

</div>

Hey @farooq.ahmed,

Make sure you have included the [required files](https://marketplace.zoom.us/docs/sdk/native-sdks/web/getting-started/integrate#cdn) and are serving your site over https.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![madhurya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/madhurya/32/17297_2.png) [@madhurya](https://devforum.zoom.us/u/madhurya)\
**Post date:** [July 6, 2021, 2:59pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/11 "2021-07-06T14:59:33Z")

</div>

Hi, I am getting this error while trying to screen share.

 ![Screenshot 2021-07-06 at 8.27.16 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/d/9d6fc6c81b1812af2ef543a7d2e89010d226e0e4.png)  
Any Ideas why this might happen?

---

<div class="post-metadata">

**Author:** ![mihai.temian](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mihai.temian/32/29587_2.png) [@mihai.temian](https://devforum.zoom.us/u/mihai.temian)\
**Post date:** [July 9, 2021, 2:02pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/12 "2021-07-09T14:02:22Z")

</div>

Same here, any update on this?

---

<div class="post-metadata">

**Author:** ![madhurya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/madhurya/32/17297_2.png) [@madhurya](https://devforum.zoom.us/u/madhurya)\
**Post date:** [July 9, 2021, 2:45pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/13 "2021-07-09T14:45:24Z")

</div>

@mihai.temian yes.  
Solution: I found that `e.desktopSharingvalue.video` is expected to be `video` element but instead we receive `canvas`. You can search for this id: `sharer-client-sharing-canvas` in your sdk code and change the element from canvas to video. It should work.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [July 9, 2021, 6:13pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/14 "2021-07-09T18:13:43Z")

</div>

Hey @madhurya and @mihai.temian,

Thank you for reaching out to the Zoom Developer Forum. What version of the [Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web#zoom-web-sdk) are you using when you see this? Was this working before or is this a new implementation?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![zoom.hyper.01](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoom.hyper.01/32/28166_2.png) [@zoom.hyper.01](https://devforum.zoom.us/u/zoom.hyper.01)\
**Post date:** [July 11, 2021, 1:12am UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/15 "2021-07-11T01:12:10Z")

</div>

Hi @MaxM,

I got this error when i added the meta tags [Origin Trials](http://googlechrome.github.io/OriginTrials/developer-guide.html) from this issue ([link](https://devforum.zoom.us/t/questions-1-9-1-improvements-details/45500/2)) and set this in my sdk configuration:  
`ZoomMtg.prepareJssdk(['WebAssembly SIMD', 'WebCodecs']);`

Best Regards  
Rafael

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [July 12, 2021, 9:53pm UTC](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/16 "2021-07-12T21:53:57Z")

</div>

Hey @zoom.hyper.01,

I’m not seeing the error that you referenced, can you share it again?

Thanks,  
Max
