# Share screen not working in 1.9.6 - TypeError: e.desktopSharingValue.video.play is not a function

**URL:** <https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901>\
**Category:** Web\
**Created:** [July 9, 2021, 2:37pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901 "2021-07-09T14:37:23Z")\
**Posts on this page:** 15\
**Page:** 1

<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:37pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/1 "2021-07-09T14:37:23Z")

</div>

**Description**  
Share screen is not working for me in 1.9.6. Even though I can see the share screen button, whenever I try to share screen I get the following error in the console:

```auto
TypeError: e.desktopSharingValue.video.play is not a function

```

It says that I’m sharing the screen and I get the green header, however, it only displays a black screen, not my screen. Also, my init options are the following:

```auto
 ZoomMtg.init({
    leaveUrl: `/`,
    isSupportPolling: false,
    isSupportChat: true,
    showMeetingHeader: true,
    showPureSharingContent: true,
    screenShare: true,

```

 ![Screenshot 2021-07-09 at 17.36.00](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/a/ca32b7202ac9cb2d2c74c4cc64252a8c2389ac8d.png)

Waiting for any advice,  
Mihai T.

---

<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:44pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/2 "2021-07-12T21:44:03Z")

</div>

Hey @mihai.temian,

Thank you for reaching out to the Zoom Developer Forum. This seems to be happening because you are using HTTP instead of HTTPS. Please test using a tool like [Ngrok](https://ngrok.com/) which will create an HTTPS secured tunnel to your local server and provide a public URL.

Let me know if that helps.

Thanks,  
Max

---

<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 13, 2021, 8:32am UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/3 "2021-07-13T08:32:34Z")

</div>

Hey @MaxM,

I’ve tested it on HTTPS and still get this error:

 ![Screenshot 2021-07-13 at 11.29.45](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/6/56263f57909cdb4d5ec0780dbfae43c89e94e374.jpeg)

I found out someone had a similar problem:

> [@WEB Sdk share screen not working](https://devforum.zoom.us/t/web-sdk-share-screen-not-working/6497/13):
>
> @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 14, 2021, 8:40pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/4 "2021-07-14T20:40:38Z")

</div>

Hey @mihai.temian,

Thanks for testing that out. That’s interesting, are you seeing the same error when testing with the [Sample Web App](https://github.com/zoom/sample-app-web)? Further, does this only happen with 1.9.6?

Please share your codebase if this is only reproducible with your implementation and I’ll investigate further.

Thanks,  
Max

---

<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 15, 2021, 3:16pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/5 "2021-07-15T15:16:42Z")

</div>

Hey @MaxM I am using version 1.9.6 and still facing this issue. Is there a permanent fix for this ?

---

<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 16, 2021, 8:04pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/6 "2021-07-16T20:04:25Z")

</div>

Hey @madhurya,

Thanks for getting back to me. Do you see the same issue when testing on the [Sample Web App](https://github.com/zoom/sample-app-web)? I haven’t been able to reproduce this so far.

If you’re able to provide steps to reproduce the issue that should help.

Thanks,  
Max

---

<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 16, 2021, 8:12pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/7 "2021-07-16T20:12:09Z")

</div>

@madhurya @mihai.temian

It looks like another customer reported this and it is related to enabling the WebCodecs Origin Trial. Can you confirm if this is enabled on your implementation as well?

> [@Enabling WebCodecs Origin Trial causes the screen sharing not to work properly](https://devforum.zoom.us/t/enabling-webcodecs-origin-trial-causes-the-screen-sharing-not-to-work-properly/54255):
>
> Description We were advised to enable WebCodecs and SharedArrayBuffers origin trial to solve some of the issues we are facing with Web SDK 1.9.6 like the delay in showing own video. When I tested with just the WebCodecs origin trial enabled, I noticed that although the “delay in showing on video” issue has been fixed with that, a new issue appeared which is the screen sharing is no longer working properly. When I started screen sharing, preview is not shown on the screen sharing preview box in…

Thanks,  
Max

---

<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 18, 2021, 4:27pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/8 "2021-07-18T16:27:19Z")

</div>

Nope WebCodecs Origin Trial is not enabled. Here’s what I am using :

 ![Screenshot 2021-07-18 at 9.53.56 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/7/f7a5a47e038acdaadb151f90ca62d52e29ba4672.png)

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [July 19, 2021, 3:19pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/9 "2021-07-19T15:19:48Z")

</div>

Hi @madhurya,

Were you able to see the same issue when testing on the [Sample Web App](https://github.com/zoom/sample-app-web)?

Do you have steps to reproduce you can share? So far we haven’t been able to reproduce on our sample app.

Thanks,  
Will

---

<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 20, 2021, 6:47am UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/10 "2021-07-20T06:47:23Z")

</div>

@will.zoom I am just following regular steps to get it running, just one change that I was not able to load WebSDK dependency resources directly from node\_modules so I have moved that into public folder. I am not even able to use options like request remote control for some reason.

Well as far as Sample Web App is concerned, I have created a meeting and then tried to join with the sample app I am getting this error:

 ![Screenshot 2021-07-20 at 12.15.47 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/a/fa5008a7f192865b77be83e6ed1d1d7c443d3c22.png)  
Thanks!!

---

<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 21, 2021, 2:33pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/11 "2021-07-21T14:33:34Z")

</div>

Hi! Any updates on this issue ??

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [July 22, 2021, 3:43pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/12 "2021-07-22T15:43:11Z")

</div>

Hi @madhurya,

As this thread is related to screenshare issues on 1.9.6, please create a new thread for this. Please include a screenshot of any browser console errors you’re seeing as well.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![shoaib](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shoaib/32/28580_2.png) [@shoaib](https://devforum.zoom.us/u/shoaib)\
**Post date:** [August 2, 2021, 1:20pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/13 "2021-08-02T13:20:30Z")

</div>

@MaxM @will.zoom I’m facing the same issue in VideoSDK@1.1.3.  
I’ve enabled WebCodecs and SharedArrayBuffers origin trial but strange part is issue is **not there in local environment** but in production I’m getting this error.

---

<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:** [August 3, 2021, 8:55pm UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/14 "2021-08-03T20:55:48Z")

</div>

Hey @shoaib,

Please post in our #web-video-sdk category and a SME will assist you directly.

Thanks,  
Max

---

<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 3, 2021, 6:55am UTC](https://devforum.zoom.us/t/share-screen-not-working-in-1-9-6-typeerror-e-desktopsharingvalue-video-play-is-not-a-function/53901/15 "2021-09-03T06:55:50Z")

</div>

Closed on September 3, 2021, 6:55am UTC

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