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

Conversation

@KasemJaffer
Copy link
Contributor

This fixes the following crashes that occur on some devices. I guess it was working before because cameraId and physicalId happen to match in most devices.

  Fatal Exception: java.util.NoSuchElementException: Collection contains no element matching the predicate.
       at livekit.org.webrtc.CameraXSession.obtainCameraConfiguration(CameraXSession.kt:382)
       at livekit.org.webrtc.CameraXSession.openCamera$lambda$12(CameraXSession.kt:157)
       at android.os.Handler.handleCallback(Handler.java:995)
       at android.os.Handler.dispatchMessage(Handler.java:103)
       at android.os.Looper.loopOnce(Looper.java:273)
       at android.os.Looper.loop(Looper.java:363)
       at android.os.HandlerThread.run(HandlerThread.java:85)

Check `physicalId` in addition to `deviceId` when looking up the camera configuration. This resolves issues on devices where the logical and physical camera IDs may differ.
@changeset-bot
Copy link

changeset-bot bot commented Nov 4, 2025

🦋 Changeset detected

Latest commit: bd2b6a8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
client-sdk-android Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@davidliu davidliu merged commit 650c35a into livekit:main Nov 6, 2025
2 checks passed
@davidliu davidliu mentioned this pull request Nov 6, 2025
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.

2 participants