这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Yash-Garg
Copy link
Contributor

@Yash-Garg Yash-Garg commented Jun 26, 2025

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.

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]
Loading

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.
@CLAassistant
Copy link

CLAassistant commented Jun 26, 2025

CLA assistant check
All committers have signed the CLA.

@cloudwebrtc cloudwebrtc merged commit f59a2bb into livekit:main Jul 1, 2025
8 of 9 checks passed
@Yash-Garg Yash-Garg deleted the patch-1 branch July 1, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants