async initializeMeetingSession()

in src/providers/MeetingProvider/MeetingManager.ts [145:172]


  async initializeMeetingSession(
    configuration: MeetingSessionConfiguration
  ): Promise<any> {
    let logger: Logger;
    if (
      location.hostname === 'localhost' ||
      location.hostname === '127.0.0.1' ||
      location.hostname === '0.0.0.0'
    ) {
      logger = new ConsoleLogger('SDK', LogLevel.WARN);
    } else {
      logger = new MeetingSessionPOSTLogger(
        'SDK',
        configuration,
        MeetingManager.LOGGER_BATCH_SIZE,
        MeetingManager.LOGGER_INTERVAL_MS,
        `${BASE_URL}logs`,
        LogLevel.INFO
      );
    }
    const deviceController = new DefaultDeviceController(logger, { enableWebAudio: false });
    this.meetingSession = new DefaultMeetingSession(configuration, logger, deviceController);
    this.audioVideo = this.meetingSession.audioVideo;
    this.audioVideo.addDeviceChangeObserver(this);
    this.setupDeviceLabelTrigger();
    await this.listAndSelectDevices();
    this.publishAudioVideoUpdate();
  }