Answers for "Agora Switch the media devices"

0

Agora Switch the media devices

// Switch the camera.
videoTrack.setDevice("<NEW_DEVICE_ID>").then(() => {
  console.log("set device success");
}).catch(e => {
  console.log("set device error", e);
});

getDevices
getCameras
getMicrophones
createMicrophoneAudioTrack
createCameraVideoTrack
CameraVideoTrack
MicrophoneAudioTrack
Posted by: Guest on October-05-2021

Browse Popular Code Answers by Language