setVideoCaptureDevice method
@valid since 3.56 @detail api @author likai.666 @brief 设置当前视频采集设备 @param deviceId 视频设备 ID,可以通过 enumerateVideoCaptureDevices{@link #IVideoDeviceManager#enumerateVideoCaptureDevices} 获取 @return - 0:方法调用成功 - !0:方法调用失败
Implementation
Future<int?> setVideoCaptureDevice(string deviceId) async {
$a() =>
($instance as $p_a.IVideoDeviceManager).setVideoCaptureDevice(deviceId);
$i() => ($instance as $p_i.ByteRTCVideoDeviceManager)
.setVideoCaptureDevice(deviceId);
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}