makeGroupVideoCall method

  1. @override
Future<void> makeGroupVideoCall(
  1. String groupJid,
  2. List<String>? jidList,
  3. dynamic callback(
    1. FlyResponse response
    )?
)
override

This method is used to make the group video call.

Implementation

@override
Future<void> makeGroupVideoCall(String groupJid, List<String>? jidList,
    Function(FlyResponse response)? callback) async {
  // bool val;
  try {
    LogMessage.d(
        'makeGroupVideoCall :', "groupJid : $groupJid, jidList : $jidList");
    await mirrorFlyCallMethodChannel.invokeMethod(
        'makeGroupVideoCall', {"groupJid": groupJid, "jidList": jidList});
    callback?.call(FlyResponse(true, FlyConstants.empty, FlyConstants.empty));
    // return val;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    callback?.call(FlyResponse(false, FlyConstants.empty, FlyConstants.empty,
        FlyException(e.code, e.message, e.details)));
  } on Exception catch (e) {
    LogMessage.d("Exception ", " $e");
    callback?.call(FlyResponse(false, FlyConstants.empty, FlyConstants.empty,
        FlyException(FlyErrorCode.unHandle, FlyErrorMessage.unHandle, e)));
  }
}