2

I'm developing a webRTC app, and I want to give users the ability to change their inputs devices (microphones).

I've found the way to display the available devices using navigator.mediaDevices.enumerateDevices() but i'm not able to find how to actually select one of the devices?

How can i set the input device to use in javascript?

Thanks.

1 Answer 1

3

You can accomplish this by following the example here: https://webrtc.github.io/samples/src/content/devices/input-output/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.