groupCall method
Future<TUIResult>
groupCall(
- String groupId,
- List<
String> userIdList, - TUICallMediaType mediaType,
- TUICallParams params,
override
Implementation
@override
Future<TUIResult> groupCall(
String groupId, List<String> userIdList, TUICallMediaType mediaType, TUICallParams params) async {
try {
await methodChannel.invokeMethod("groupCall",
{'groupId': groupId, 'userIdList': userIdList, 'mediaType': mediaType.index, 'params': params.toJson()});
} on PlatformException catch (error) {
return TUIResult(code: error.code, message: error.message);
} on Exception catch (error) {
return TUIResult(code: "-1", message: error.toString());
}
return TUIResult(code: "", message: "groupCall success");
}