Skip to content

Wrong MediaStreamSettings after reconnection of WebSocket #149

@evdokimovs

Description

@evdokimovs

Summary

When WebSocket reconnection occurs for all users connected to the Room due to network-related lag on the server, the MediaStreamSettings of these clients may appear to be broken. Consequently, after the reconnection, device_video becomes disabled, and display_video becomes enabled, leading to screen sharing being activated for all users. This behavior seems to indicate a potential bug in our reactive state synchronization mechanism triggered during WebSocket reconnection through a full state update. However, certain aspects do not look related to this mechanism, so a more in-depth investigation needed.

Platform information

Not platform specific.

Steps to reproduce

  1. Start group call
  2. Members are connecting
  3. Network lag happens

What is the current bug behavior?

  1. Camera and microphone is disabled on every member now
  2. Screen-sharing is enabled on every member now (without user intention)

What is the expected correct behavior?

  1. All MediaStreamSettings should be the same as user selected before

Possible fixes

It looks like a problem in our state synchronization after WebSocket reconnection mechanism. So most likely bug is somewhere here, but firstly we need constant reproduce of this bug. We can trigger state synchronization on different stages of the call and try to catch this bug locally.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementImprovement of existing features or bugfixk::ui/uxRelated to UI/UX experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions