Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No device selected in some cases #997

Open
jakubjanousek opened this issue Oct 2, 2024 · 2 comments
Open

No device selected in some cases #997

jakubjanousek opened this issue Oct 2, 2024 · 2 comments

Comments

@jakubjanousek
Copy link

jakubjanousek commented Oct 2, 2024

Select which package(s) are affected

@livekit/components-react

Describe the bug

On some devices, LiveKit doesn't select audio device in PreJoin (nor inside call) even though LiveKit sees several audio devices. Camera is selected correctly. After joining call, the sound is transmitted correctly, but in MediaSelectDevice there is still nothing selected

image (1)

const audioDevices = useMediaDevices({ kind: 'audioinput' })
console.log('audioDevices length:', audioDevices.length) // audioDevices length: 2
console.log(userChoices.audioDeviceId) // ''
console.log(userChoices.videoDeviceId) // 'abc123def...'

it happens on https://meet.livekit.io as well

Logs:

image
image2

Reproduction

This happens in meet.livekit.io as well. It can be reproduced there. You can see a camera is selected correctly, but not the microphone

Devices where it happens:

  • Chrome, Linux: Ubuntu 22.04.4 LTS
  • Chrome, Android 13

Devices where it works correctly:

  • any browser on MacOS & iOS

image
Screenshot_20241002_094848_Chrome
Screenshot_20241002_094854_Chrome

Logs

No response

System Info

Devices where we reproduced it:
* Chrome, Linux: Ubuntu 22.04.4 LTS
* Chrome, Android 13

Worked correctly on:
* multiple browsers, MacOS
* multiple browsers, iOS

Severity

blocking all usage of LiveKit

Additional Information

No response

@lukasIO
Copy link
Contributor

lukasIO commented Oct 8, 2024

would it be possible for you to check whether #952 fixes the issue for you?

@eyalfishler
Copy link

@lukasIO same issue with latest build, audio device is showing as selected but its not really selected and require a re-selection for audio to be transmitted. I'm on iPhone 13pro iOS 18

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

No branches or pull requests

3 participants