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