callCRCDevice method

  1. @override
Future<String> callCRCDevice(
  1. String address,
  2. String protocol
)

Calls CRC device. Only available for the host/co-host. If the function succeeds, the {@link ZoomVideoSDKDelegate#onCallCRCDeviceStatusChanged(ZoomVideoSDKCRCCallStatus)} will be triggered once the call crc device status changes.
address The CRC device's IP address
protocol The protocol of the CRC device. See {@link ZoomVideoSDKCRCProtocol}
Return ZoomVideoSDKError_Success if the function succeeds. Otherwise, this function returns an error.

Implementation

@override
Future<String> callCRCDevice(String address, String protocol) async {
  var params = <String, dynamic>{};
  params.putIfAbsent("address", () => address);
  params.putIfAbsent("protocol", () => protocol);

  return await methodChannel
      .invokeMethod<String>('callCRCDevice', params)
      .then<String>((String? value) => value ?? "");
}