# Cannot start share screen view

**URL:** <https://devforum.zoom.us/t/cannot-start-share-screen-view/63473>\
**Category:** Web\
**Created:** [January 31, 2022, 11:17am UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473 "2022-01-31T11:17:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dekoyre](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dekoyre](https://devforum.zoom.us/u/dekoyre)\
**Post date:** [January 31, 2022, 11:17am UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/1 "2022-01-31T11:17:05Z")

</div>

**Description**  
I listen client event `active-share-change`. When it’s Active, I do `stream.startShareView `. And after about half a minute I get timeout error.

I tried to render on clean new canvas, the one that I use for partner video, HTMLVideoElement, always the same result.

OT for WebCodecs and SAB are turned on.

**Browser Console Error**  
`{ type: "OPERATION_TIMEOUT" }`

**Which Web Video SDK version?**  
1.1.6

**Video SDK Code Snippets**

```auto
client.on('active-share-change', async (payload) => {
            if (payload.state === VideoActiveState.Active) {
                await stream.startShareView(canvas, payload.userId);
            } else if (payload.state === VideoActiveState.Inactive) {
                // ...
            }
});

```

**Device:**

- Device: Macbook Pro
- OS: macOS 11.4
- Browser: Chrome
- Browser Version: 97.0.4692.71 (Official Build) (x86\_64)

---

<div class="post-metadata">

**Author:** ![nickuk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nickuk/32/31345_2.png) [@nickuk](https://devforum.zoom.us/u/nickuk)\
**Post date:** [February 1, 2022, 9:41am UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/2 "2022-02-01T09:41:35Z")

</div>

I’m also getting this issue and confirm the canvas (or video) element and user IDs are all being set correctly.

**Video SDK Version:**  
1.1.7

**Device:**

- Browser: Chrome

---

<div class="post-metadata">

**Author:** ![nickuk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nickuk/32/31345_2.png) [@nickuk](https://devforum.zoom.us/u/nickuk)\
**Post date:** [February 3, 2022, 2:53pm UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/3 "2022-02-03T14:53:01Z")

</div>

Hi @dekoyre,

For the person who’s sharing their screen, a video tag must be used if they support web codecs.

For the person who’s viewing the share, that must be a canvas element.

[https://marketplace.zoom.us/docs/sdk/video/web/essential/screen-share/#using-webcodecs-use-video-element-instead-of-canvas](https://marketplace.zoom.us/docs/sdk/video/web/essential/screen-share/#using-webcodecs-use-video-element-instead-of-canvas)

@tommy - Could you get the above documentation section updated so it’s clearer for future developers? There’s a section called ‘Viewing participant’s screen sharing’ then ‘Canvas elements’ and then directly under that there’s a section explaining that you should use video instead of canvas if web codecs are enabled. It’s certainly not clear that this is **only** for the person who’s **sharing** the screen.

Thanks,

Nick

---

<div class="post-metadata">

**Author:** ![dekoyre](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dekoyre](https://devforum.zoom.us/u/dekoyre)\
**Post date:** [February 5, 2022, 10:44am UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/4 "2022-02-05T10:44:38Z")

</div>

Thanks! I see.

But anyway in case of the person who’s viewing the stream, I’m getting timeout error even if trying to render on canvas.

---

<div class="post-metadata">

**Author:** ![nickuk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nickuk/32/31345_2.png) [@nickuk](https://devforum.zoom.us/u/nickuk)\
**Post date:** [February 5, 2022, 7:13pm UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/5 "2022-02-05T19:13:05Z")

</div>

Is it appearing OK for the person who’s sharing their screen, i.e. does it appear in the ‘video’ (assuming the browser supports the WebCodecs)?

---

<div class="post-metadata">

**Author:** ![dekoyre](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dekoyre](https://devforum.zoom.us/u/dekoyre)\
**Post date:** [February 7, 2022, 8:57am UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/6 "2022-02-07T08:57:00Z")

</div>

Yep, for the one who shares the screen it’s all good (with WebCodecs and video element)

---

<div class="post-metadata">

**Author:** ![nickuk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nickuk/32/31345_2.png) [@nickuk](https://devforum.zoom.us/u/nickuk)\
**Post date:** [February 7, 2022, 10:07am UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/7 "2022-02-07T10:07:57Z")

</div>

You mention you have tried using a “clean” canvas that’s used for the partner video. Have you tried a completely separate canvas that’s not being used for anything else at all? I have a canvas that is only in place for **viewing** the screenshare and nothing else.

---

<div class="post-metadata">

**Author:** ![mitesh.gandhi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mitesh.gandhi/32/3954_2.png) [@mitesh.gandhi](https://devforum.zoom.us/u/mitesh.gandhi)\
**Post date:** [February 8, 2022, 6:10pm UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/8 "2022-02-08T18:10:20Z")

</div>

We are also facing the same error “OPERATION\_TIMEOUT” when a participant tries to view the screenshare. @nickuk We are using a separate canvas for viewing the screenshare. It works fine for the participant who shares the screen.

We are currently using Web video sdk version 1.1.6

---

<div class="post-metadata">

**Author:** ![nickuk](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nickuk/32/31345_2.png) [@nickuk](https://devforum.zoom.us/u/nickuk)\
**Post date:** [February 8, 2022, 7:55pm UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/9 "2022-02-08T19:55:38Z")

</div>

Hmmm, @dekoyre & @mitesh.gandhi , just in case, does upgrading to version 1.1.7 do anything? That’s what I’m using where it’s working correctly.

---

<div class="post-metadata">

**Author:** ![mitesh.gandhi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mitesh.gandhi/32/3954_2.png) [@mitesh.gandhi](https://devforum.zoom.us/u/mitesh.gandhi)\
**Post date:** [February 9, 2022, 2:58pm UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/10 "2022-02-09T14:58:28Z")

</div>

Hey @nickuk ,  
Yes, updating to 1.1.7 resolved the screen sharing issue.

Thanks,  
Mitesh

---

<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 12, 2022, 12:58am UTC](https://devforum.zoom.us/t/cannot-start-share-screen-view/63473/11 "2022-03-12T00:58:43Z")

</div>

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