# Video feed gets stuck if user is disconnected

**URL:** <https://devforum.zoom.us/t/video-feed-gets-stuck-if-user-is-disconnected/55856>\
**Category:** Web\
**Created:** [August 16, 2021, 12:09pm UTC](https://devforum.zoom.us/t/video-feed-gets-stuck-if-user-is-disconnected/55856 "2021-08-16T12:09:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan.md](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hasan.md/32/19300_2.png) [@hasan.md](https://devforum.zoom.us/u/hasan.md)\
**Post date:** [August 16, 2021, 12:09pm UTC](https://devforum.zoom.us/t/video-feed-gets-stuck-if-user-is-disconnected/55856/1 "2021-08-16T12:09:43Z")

</div>

Hi @tommy & @vic.yang,  
We’ve been getting an issue where user video feed gets stuck when user is disconnected(turn off wifi) suddenly. Video feed on the other participant gets stuck.

Even if user rejoins a few seconds later the video feed continues being stuck.

**Issues**  
**1.Video feed gets stuck if a participant is suddenly disconnected (wifi turned off). We also checked the to see if state of the participant changes or not. It seems we do not get any notification as to the state of participant or the video feed.**  
**2. Feed keeps getting stuck upon rejoining after disconnection a few moments later.**  
**But the audio feed works fine upon re connection.**  
**3. Sometimes a users video rendering gets stuck. Particularly in case of long distance and high number of participant.**

**Which Web Video SDK version?**  
Web VideoSdk 1.1.0 and 1.1.3

**To Reproduce(for issue 1 and 2)**  
Steps to reproduce the behavior:

1. Start a session and join it using 2 users from different networks. The further apart they are the better.
2. Turn on video audio in both the devices.
3. Turn off wifi or ethernet connection to one of the users.
4. Check the other users video feed.
5. After a few moments turn on wifi and join the video session again. Turn on video and audio.
6. Check other users feed.

**To Reproduce(for issue 3)**  
Steps to reproduce the behavior:

1. Join a session using 4+ users using gallery view using separate devices and networks.
2. Continue for some time with audio and video turned on.

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

- Device: Desktop
- OS: Windows and Ubuntu
- Browser: Chrome
- Browser Version -Latest

BTW thank you guys for fixing the “webcodecs share screen issue”.

Best Regards,  
Md. Mehedi Hasan

---

<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 17, 2021, 6:04pm UTC](https://devforum.zoom.us/t/video-feed-gets-stuck-if-user-is-disconnected/55856/2 "2021-08-17T18:04:02Z")

</div>

Hey @hasan.md , thanks for reporting this!

Upon disconnect, have you tried removing the stream, and starting it again once they rejoin?

The `client.on('connection-change', (payload) => {})` function should fire when a user is disconnected and reconnected.

[https://marketplace.zoom.us/docs/sdk/video/web/essential/create-join-session#initialize-and-join-a-session](https://marketplace.zoom.us/docs/sdk/video/web/essential/create-join-session#initialize-and-join-a-session)

> [@hasan.md](#):
>
> BTW thank you guys for fixing the “webcodecs share screen issue”.

You are welcome! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![hasan.md](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hasan.md/32/19300_2.png) [@hasan.md](https://devforum.zoom.us/u/hasan.md)\
**Post date:** [August 19, 2021, 6:32am UTC](https://devforum.zoom.us/t/video-feed-gets-stuck-if-user-is-disconnected/55856/3 "2021-08-19T06:32:18Z")

</div>

@tommy  
‘connection-change’ event notifies the user who was disconnected. But the other users who were online sees the video feed of that particular user as stuck.  
Also did u have a chance to look at issue number 3?

---

<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 19, 2021, 9:29pm UTC](https://devforum.zoom.us/t/video-feed-gets-stuck-if-user-is-disconnected/55856/4 "2021-08-19T21:29:05Z")

</div>

Hey @hasan.md ,

Upon the connection-change event, you can remove the videdo canvas of the user who is stuck. 🙂

> [@hasan.md](#):
>
> **3. Sometimes a users video rendering gets stuck. Particularly in case of long distance and high number of participant.**

Are you seeing any errors in the browser console when this issue happens?

Thanks,  
Tommy

---

<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:** [August 20, 2021, 3:20am UTC](https://devforum.zoom.us/t/video-feed-gets-stuck-if-user-is-disconnected/55856/5 "2021-08-20T03:20:44Z")

</div>

Hey @hasan.md

Thanks for your feedback.

Unexpected disconnection caused by the network jitter or inadvertently closing the browser tab will not be treated as leaving the session. After 5 minutes of not receiving the heartbeat package, the server will remove the user. Then the peer side will get the ‘user-removed’ event.

The Web Video SDK will improve the failover experience caused by the network jitter.

Thanks  
Vic

---

<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 19, 2021, 1:21pm UTC](https://devforum.zoom.us/t/video-feed-gets-stuck-if-user-is-disconnected/55856/6 "2021-09-19T13:21:05Z")

</div>

Closed on September 19, 2021, 1:21pm UTC

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