You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: update camera deviceId when track is null (#814)
If there is no `LocalVideoTrack` while we are in the call,
`setVideoInputDevice` will skip the device selection as a whole since
`track` is `null`.
This will result in a wrong device being used to create a track.
```mermaid
flowchart TD
A["Join room with video OFF (X)"] --> B[No video track published]
B --> C["Select new camera device (Y)"]
C --> D{Is video track available?}
D -- No --> E[track is null, switchCamera skipped]
E --> F[roomOptions not updated]
F --> G[Turn on video]
G --> H["New track uses old device (X)"]
H --> I[Camera shows wrong input]
```
0 commit comments