Skip to content

Fix camera state handling when users click "Next" #77

@javatcoding1

Description

@javatcoding1

Currently, when multiple users are connected and turn off their cameras, clicking Next does not properly update the physical camera state.

Example scenario:

User 1 connects with User 2, and User 3 connects with User 4.

All users turn off their cameras.

When User 1 and User 3 click Next, they get connected.

User 1’s camera appears off, but User 3 can still see User 1’s camera tracks (and vice versa for User 1 and User 4).

Expected Behavior:

When the camera is turned off (via the camera icon), the physical camera should be stopped.

The state must update when clicking Next, ensuring that the physical camera remains off if the user had previously turned it off.

Fix Needed:

Stop the physical camera stream when the user clicks the camera icon.

Ensure the camera state is consistently updated when navigating to the next user.

On reconnecting (via Next), the camera should respect the last user-selected state.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions