Change Device in Conference Call


Is there any way to change the input devices like microphone in call?

We want to change the device which is capturing the stream like microphone to another source.

If anyone have any idea how to do it please share your suggestions.

Thanks & Regards
Nibin Thomas


Yes, you need to use navigator.mediaDevices.enumerateDevices() to fetch a list of devices and then use deviceId in the constraints when granting access to the device.

Thanks for your reply
But we want the device change in after stream added.
which means the stream device should change while a stream is published and that stream still in the room.
then we need to change the device dynamically.

Is it Possible

Another device means another stream, so I don’t think that would be possible.

You may benefit from AudioContext to create a mixed audio stream and then add or remove audio tracks.