setDevice abstract method
Specifies the video capture device by device ID.
Plugging or unplugging a device does not change the device ID. This method is applicable only to Windows and macOS.
deviceIdUTF8Device ID. You can get it 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. See Error Codes for details and resolution suggestions.
Implementation
Future<void> setDevice(String deviceIdUTF8);