call method

  1. @override
Future<Map<String, dynamic>> call(
  1. BuildContext context, {
  2. required CallType callType,
  3. required List<String> userIdList,
  4. String? chatGroupId,
  5. String? roomId,
  6. String? userData,
  7. Map<String, dynamic>? offlinePushInfo,
})
override

Implementation

@override
Future<Map<String, dynamic>> call(BuildContext context, {required CallType callType, required List<String> userIdList, String? chatGroupId, String? roomId, String? userData, Map<String, dynamic>? offlinePushInfo}) async {
  developerLog('该方法是针对web提供的,在 android / ios 端调用也可以成功发起音视频通话,但是可传递的参数没有 [ callForNative ] 方法全面');
  try {
    return await callForNative(context, callType: callType, userIdList: userIdList, chatGroupId: chatGroupId, roomId: roomId, userData: userData, offlinePushInfo: offlinePushInfo);
  } catch(e) {
    rethrow;
  }
}