initZoom method

  1. @override
Future<List> initZoom(
  1. ZoomOptions options
)
override

Initialize Zoom SDK For Web

Implementation

@override
Future<List> initZoom(ZoomOptions options) async {
  final Completer<List> completer = Completer();
  var sus = ZoomMtg.checkSystemRequirements();
  var susmap = convertToDart(sus);
  if (kDebugMode) {
    print(susmap);
  }

  ZoomMtg.i18n.load(options.language);
  ZoomMtg.preLoadWasm();
  ZoomMtg.prepareWebSDK();
  ZoomMtg.init(InitParams(
      leaveUrl: "/index.html",
      showMeetingHeader: options.showMeetingHeader,
      disableInvite: options.disableInvite,
      disableCallOut: options.disableCallOut,
      disableRecord: options.disableRecord,
      disableJoinAudio: options.disableJoinAudio,
      audioPanelAlwaysOpen: options.audioPanelAlwaysOpen,
      isSupportAV: options.isSupportAV,
      isSupportChat: options.isSupportChat,
      isSupportQA: options.isSupportQA,
      isSupportCC: options.isSupportCC,
      isSupportPolling: options.isSupportPolling,
      isSupportBreakout: options.isSupportBreakout,
      screenShare: options.screenShare,
      rwcBackup: options.rwcBackup,
      videoDrag: options.videoDrag,
      sharingMode: options.sharingMode,
      videoHeader: options.videoHeader,
      isLockBottom: options.isLockBottom,
      isSupportNonverbal: options.isSupportNonverbal,
      isShowJoiningErrorDialog: options.isShowJoiningErrorDialog,
      disablePreview: options.disablePreview,
      disableCORP: options.disableCORP,
      inviteUrlFormat: options.inviteUrlFormat,
      disableVoIP: options.disableVOIP,
      disableReport: options.disableReport,
      meetingInfo: options.meetingInfo,
      success: allowInterop((var res) {
        completer.complete([0, 0]);
      }),
      error: allowInterop((var res) {
        completer.complete([1, 0]);
      })));
  return completer.future;
}