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

Camera does not change from default camera when camera-mic-preview is enabled on Chrome #2079

Open
vileht opened this issue Feb 26, 2025 · 3 comments

Comments

@vileht
Copy link

vileht commented Feb 26, 2025

Summary

Chrome feature: chrome://flags/#camera-mic-preview needs to be enabled, the bug does not reproduce when it is disabled. This reproduces in our Angular app running twilio-video SDK, and it also reproduces on https://video-diagnostics.twilio.com in the "Check your video" section.

The camera selection dropdown menu lists all cameras. However, when changing the selected camera to a non-default camera in the dropdown menu, the selection is updated but the camera feed does not reflect the camera change. The camera feed still uses the Chrome's default camera, regardless of which camera is actually selected in the dropdown.

Technical details

In our app, we found a problem when calling:
await Twilio.createLocalVideoTrack({ name: 'local-video', deviceId: device.id, width: 1280, height: 720, frameRate: 24, });

When the method is called with a different device id, the track it creates does not use that device. Instead the track uses the Chrome's default camera.

Software versions

Browser(s): Chrome 133
Operating System: Windows 10, Windows 11
twilio-video.js: 2.29.0
Third-party libraries (e.g., Angular, React, etc.): Angular

@luisrivas
Copy link
Collaborator

Hi @vileht
Thank you for reaching out,
I wasn't able to reproduce the issue on Mac OS, but we're definitely going to look into it further! We'll try to replicate it on Windows 10 or Windows 11 and keep you updated with our findings. We’ll be back soon with more information on how to resolve this!

@luisrivas
Copy link
Collaborator

@vileht We were also unable to reproduce it on Windows 11. Could you confirm whether this issue is also happening in this sample app?
https://webrtc.github.io/samples/src/content/devices/input-output/

@vileht
Copy link
Author

vileht commented Feb 28, 2025

Hi,

Looks like this does not reproduce on https://webrtc.github.io/samples/src/content/devices/input-output/. Any idea why it does not reproduce there, but reproduces on https://video-diagnostics.twilio.com and our app?

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

2 participants