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.
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.
Share Improve this question edited Oct 13, 2017 at 10:06 Ole Haugset 3,8073 gold badges26 silver badges48 bronze badges asked Oct 13, 2017 at 10:04 A.I.SA.I.S 1113 silver badges10 bronze badges1 Answer
Reset to default 3You can acplish this by following the example here: https://webrtc.github.io/samples/src/content/devices/input-output/