How do you change the audio and video input devices during a video call?
You can get all the available audio and video input and output devices of the user by calling the
getDevices method. If the user wants to use the first identified device, set
microphoneId as "" in the createStream method. The user can also create arrays of objects to manage local devices (according to the "kind" classification). The
microphoneId are randomly generated and subject to change in some cases. Therefore, if you want to change the audio and video input devices during a video call, you need to first close the stream, call the
getDevice method, and create a stream again.
How do you enable the dual-stream mode?
The sender calls the
enableDualStream method to enable the dual-stream mode. The receiver switches between the high stream and low stream by calling the
setRemoteVideoStreamType method and sets the parameters of the low stream by calling the