Video feed gets stuck if user is disconnected

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

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.

You are welcome! :slight_smile:

Thanks,
Tommy

@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?

Hey @hasan.md ,

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

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

Thanks,
Tommy

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

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