# Web Video sdk screenshare not working in safari

**URL:** <https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543>\
**Category:** Web\
**Created:** [July 22, 2021, 7:50am UTC](https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543 "2021-07-22T07:50:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddhant28r](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/siddhant28r/32/27374_2.png) [@siddhant28r](https://devforum.zoom.us/u/siddhant28r)\
**Post date:** [July 22, 2021, 7:50am UTC](https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543/1 "2021-07-22T07:50:41Z")

</div>

**Description**  
I m trying to build a screen-sharing service. Everything is working fine in chrome and firefox, However, I am getting this error in **safari** (both while sharing and receiving the stream)  
(not even getting the browser popup to select which tab or screen to share in case of **safari** ).

**Error**  
TypeError: TypedArray.from requires its this argument subclass a TypedArray constructor

**Which Web Video SDK version?**  
I am using zoom web video sdk version 1.9.1 (instankSDK)

**Screenshots**

 ![MicrosoftTeams-image (1)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/a/6a37a405ffbbfb7a7ac49a33ced9ead4235588d8.png)

---

<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:** [July 22, 2021, 8:13pm UTC](https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543/2 "2021-07-22T20:13:17Z")

</div>

Hey @siddhant28r ,

Happy to help. Can you please share steps to reproduce this issue and your Video SDK code snippets so we can take a look?

> [@siddhant28r](#):
>
> I am using zoom web video sdk version 1.9.1 (instankSDK)

Also, the latest version of the Video SDK is 1.1.3. How are you setting the version number to 1.9.1?

> **[@zoom/videosdk](https://www.npmjs.com/package/@zoom/videosdk)**
>
> Zoom Web Video SDK. Latest version: 1.9.8, last published: 13 days ago. Start using @zoom/videosdk in your project by running \`npm i @zoom/videosdk\`. There are 2 other projects in the npm registry using @zoom/videosdk.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![siddhant28r](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/siddhant28r/32/27374_2.png) [@siddhant28r](https://devforum.zoom.us/u/siddhant28r)\
**Post date:** [August 1, 2021, 5:57pm UTC](https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543/3 "2021-08-01T17:57:41Z")

</div>

Hi @tommy ,  
i m using version 1.1.0 (not 1.9.1).  
Steps to reproduce:  
i have simple flow, where i have one Zoom instance that i m using to join the user in a room and then i m trying to share the screen and it works fine in chrome and firefox but gives above mentioned error in  
safari…

code snippet

 ![Screenshot 2021-08-01 at 11.34.17 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/8/5/8585549bb5cb6a2694a38c5c048af575212342ef.png)  
i have created wrappers over zoom sdk methods

---

<div class="post-metadata">

**Author:** ![siddhant28r](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/siddhant28r/32/27374_2.png) [@siddhant28r](https://devforum.zoom.us/u/siddhant28r)\
**Post date:** [August 1, 2021, 5:58pm UTC](https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543/4 "2021-08-01T17:58:14Z")

</div>

Its giving error in safari only

 ![Screenshot 2021-08-01 at 11.30.15 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/5/75447fbab58cc4d3322fb3d9239ce924a4fa1b32.png)

---

<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:** [August 2, 2021, 8:11pm UTC](https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543/5 "2021-08-02T20:11:11Z")

</div>

Hey @siddhant28r ,

What are you passing into the `stream.startShareScreen(canvas);` function? Double check your canvas is defined.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![siddhant28r](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/siddhant28r/32/27374_2.png) [@siddhant28r](https://devforum.zoom.us/u/siddhant28r)\
**Post date:** [August 4, 2021, 4:26am UTC](https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543/6 "2021-08-04T04:26:18Z")

</div>

Hi @tommy ,  
I am passing the canvas in the startScreenShare method itself, the one u see above is my wrapper method.

 ![Screenshot 2021-08-04 at 10.03.45 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/5/b5175f8f66dbccf880d262b0d5611b2e81a83109.png)

This is my code, hope this provides some more clarity of my usecase, first i m checking if the stream and canvas are defined then only i am calling Zoom’s startShareScreen method

---

<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:** [August 10, 2021, 5:45pm UTC](https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543/7 "2021-08-10T17:45:21Z")

</div>

Hey @siddhant28r ,

Instead of `document.getElementById('desktop-screen')` can you try `document.querySelector('#desktop-screen')`

Also, what is the `.value` ? It should be `stream.startShareScreen(document.querySelector('#desktop-screen'))`

Thanks.  
Tommy

---

<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 10, 2021, 3:45am UTC](https://devforum.zoom.us/t/web-video-sdk-screenshare-not-working-in-safari/54543/8 "2021-09-10T03:45:49Z")

</div>

Closed on September 10, 2021, 3:45am UTC

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