setDevice abstract method
Specifies the video capture device with the device ID.
Plugging or unplugging a device does not change its device ID. This method is for Windows and macOS only.
deviceIdUTF8
The device ID. You can get the device ID by calling enumerateVideoDevices. The maximum length is MaxDeviceIdLengthType.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.
Implementation
Future<void> setDevice(String deviceIdUTF8);