# Video SDK Issue on web

**URL:** https://devforum.zoom.us/t/video-sdk-issue-on-web/90235
**Category:** Web
**Created:** [June 15, 2023, 12:07pm UTC](https://devforum.zoom.us/t/video-sdk-issue-on-web/90235 "2023-06-15T12:07:15Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pooja.emedstore](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pooja.emedstore/32/49441_2.png) [@pooja.emedstore](https://devforum.zoom.us/u/pooja.emedstore)
#### Post date: [June 15, 2023, 12:07pm UTC](https://devforum.zoom.us/t/video-sdk-issue-on-web/90235/1 "2023-06-15T12:07:15Z")

</div>

We are facing an issue while using Video SDK on Web version 1.6.0.  
If a participant is suddenly disconnected due to some issue & when returning to the session, the system does not update the camera image it got stuck.

---

<div class="post-metadata">

### Author: ![pooja.emedstore](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pooja.emedstore/32/49441_2.png) [@pooja.emedstore](https://devforum.zoom.us/u/pooja.emedstore)
#### Post date: [June 19, 2023, 7:11am UTC](https://devforum.zoom.us/t/video-sdk-issue-on-web/90235/2 "2023-06-19T07:11:46Z")

</div>

It is giving us below error in below handle.  
{  
“type”: “INVALID\_OPERATION”,  
“reason”: “subscribe video counts greater than maximum size (1)”  
}

It works if reloading the browser and join again. But If **participant** simply click browser back button and join session again it gives above error **to another user** in below event

const onPeerVideoStateChange = useCallback(async (payload: any) =\> {  
console.log(“peer-video-state-change”, payload);  
if (payload.action === “Start”) {  
await mediaStream.current?.renderVideo(  
elements.patientCanvas(),  
payload.userId,  
mainViewWidth,  
mainViewHeight,  
0,  
0,  
2  
);  
updateVideoState({ isPatientVideoOn: true });  
} else if (payload.action === “Stop”) {  
await stopPatientVideo();  
}  
}, );

---

<div class="post-metadata">

### Author: ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)
#### Post date: [June 20, 2023, 2:07am UTC](https://devforum.zoom.us/t/video-sdk-issue-on-web/90235/3 "2023-06-20T02:07:03Z")

</div>

Hey @pooja.emedstore

Thanks for your feedback.

Have you enabled `SharedArrayBuffer` on your site?

> **[Zoom Developer Docs](https://developers.zoom.us/docs/video-sdk/web/gallery-view/#overview)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

If not, we cannot render more than 1 video on the same canvas, which means you need to assign a canvas for each video.

Thanks  
Vic

---

<div class="post-metadata">

### Author: ![pooja.emedstore](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pooja.emedstore/32/49441_2.png) [@pooja.emedstore](https://devforum.zoom.us/u/pooja.emedstore)
#### Post date: [June 20, 2023, 6:10am UTC](https://devforum.zoom.us/t/video-sdk-issue-on-web/90235/4 "2023-06-20T06:10:25Z")

</div>

@vic.yang

Thank you for your response.

we are not trying to render more than one video on single canvas. Its just start & stop rendering for the same participant.

It is working absolutely fine when participant manually starts & stops the video mode but when he leaves the session and rejoins, then turn on video, that is where the other user gets the given error when rendering.

---

<div class="post-metadata">

### Author: ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)
#### Post date: [June 20, 2023, 6:34am UTC](https://devforum.zoom.us/t/video-sdk-issue-on-web/90235/5 "2023-06-20T06:34:40Z")

</div>

Hey @pooja.emedstore

Each user who joins the session will be automatically assigned a `userId`, which is also applicable to the scenario of leaving and rejoining the session.

So a new canvas is required or if you need to reuse the same canvas, invoke the `stopRenderVideo` to clear the previous rendered before using `renderVideo` to render the new video.

Thanks  
Vic

---

<div class="post-metadata">

### Author: ![pooja.emedstore](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pooja.emedstore/32/49441_2.png) [@pooja.emedstore](https://devforum.zoom.us/u/pooja.emedstore)
#### Post date: [June 20, 2023, 1:28pm UTC](https://devforum.zoom.us/t/video-sdk-issue-on-web/90235/6 "2023-06-20T13:28:45Z")

</div>

Hello @vic.yang

We are exactly doing the same thing but somehow its not working. Will try few other things & let you know if it works.

---

<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: [July 20, 2023, 11:29pm UTC](https://devforum.zoom.us/t/video-sdk-issue-on-web/90235/7 "2023-07-20T23:29:44Z")

</div>

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