# Video SDK - Screen Sharing not working

**URL:** <https://devforum.zoom.us/t/video-sdk-screen-sharing-not-working/63557>\
**Category:** Web\
**Created:** [February 1, 2022, 4:48pm UTC](https://devforum.zoom.us/t/video-sdk-screen-sharing-not-working/63557 "2022-02-01T16:48:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuinteedev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nuinteedev/32/34673_2.png) [@nuinteedev](https://devforum.zoom.us/u/nuinteedev)\
**Post date:** [February 1, 2022, 4:48pm UTC](https://devforum.zoom.us/t/video-sdk-screen-sharing-not-working/63557/1 "2022-02-01T16:48:37Z")

</div>

Hi, I’ve been following the documentation to implement Screen Sharing feature with React.

Although, it only shows the sharing screen to started user and others doesn’t see it.

When sharing is stopped, I get this error (There’s no error on sharing start)

> TypeError: Cannot read properties of undefined (reading ‘contextGL’)  
> at c2f9e9ce-c03d-429c-a087-fb847ca77016:1:111290  
> at c2f9e9ce-c03d-429c-a087-fb847ca77016:1:111392

Actual Code

```js

// For rendering received screen share stream
client.on('active-share-change',async payload =>{
            const target = client.getAllUser().find(item => item.userId === payload.userId)

            // const video = document.querySelector(`.user_media.video[data-video_id="${target?.displayName}"]`)

            // Also Tried with video element above (reference to the share started user's video tag), but the result was same.
            const testVideo = document.querySelector('.share-canvas#test_video')

            if(payload.state === 'Active' ){
                console.log('STARTED!')
                console.log(payload.userId)
                try {
                    await stream.startShareView(testVideo,payload.userId)
                } catch (error){
                    console.log(error)
                }

            }else if(payload.state === 'Inactive'){
                try {
                    await stream.stopShareView()
                } catch (error) {
                    console.log(error)
                }
            }
           })

// For start sharing screen
 const startShareScreen = () => {
        const testVideo = document.querySelector('.share-canvas#test_video')
        stream.startShareScreen(testVideo)
    }

```

Please Help!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 22, 2022, 11:05pm UTC](https://devforum.zoom.us/t/video-sdk-screen-sharing-not-working/63557/2 "2022-02-22T23:05:10Z")

</div>

@nuinteedev,

Thank you for posting! Can you share more details about the SDK you are using? Please use the template below to provide the relevant information:

**Description** :

**Browser Console Error** :

**Which Web Meeting SDK version?** :

**Meeting SDK Code Snippets** :

**To Reproduce(If applicable)**:

**Screenshots** :

**Device (please complete the following information):**:

**Additional context** :

Thanks,  
Donte

---

<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:** [March 25, 2022, 9:05am UTC](https://devforum.zoom.us/t/video-sdk-screen-sharing-not-working/63557/3 "2022-03-25T09:05:38Z")

</div>

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