Manage Media Devices
To get the list of media devices that are currently being used, you can use the following methods:
// Get all audio devices
let audioDevices = meeting.localUser.getAudioDevices();
// Get all video devices
let videoDevices = meeting.localUser.getVideoDevices();
Set audio device
To set a device as an active device, you can call setAudioDevice
method. This
takes a AudioDevice
object.
meeting.localUser.setAudioDevice(device);
Set video device
To set a video device as an active device, you can call setVideoDevice
method.
This takes a VideoDevice
object.
meeting.localUser.setVideoDevice(device);