Help Center/ SparkRTC/ FAQs/ SDK Usage/ How Do I Switch to Another Camera or Microphone on the Web Client?
Updated on 2023-11-01 GMT+08:00

How Do I Switch to Another Camera or Microphone on the Web Client?

Audio/video input devices are identified by device ID (deviceId). Each audio/video device has a unique device ID. You can call to obtain the device ID. The device ID is randomly generated. In some cases, the ID of the same device may change. You are advised to call to obtain the device ID each time you switch to another device. You can call to obtain the camera and microphone, and then call to switch to another device.