removePublishCdnUrl method

Future<Map> removePublishCdnUrl(
  1. String streamID,
  2. String targetURL
)

Implementation

Future<Map<dynamic, dynamic>> removePublishCdnUrl(
    String streamID, String targetURL) async {
  final map = {};
  try {
    final promise = callMethod(ZegoFlutterEngine.instance,
        'removePublishCdnUrl', [streamID, targetURL]);
    final result = await promiseToFuture(promise);
    map["errorCode"] = getProperty(result, 'errorCode');
  } catch (error) {
    map["errorCode"] = getProperty(error, 'errorCode');
  }
  return Future.value(map);
}