initialize static method

Future<void> initialize({
  1. bool bypassVoiceProcessing = false,
})

Initialize the WebRTC plugin. If this is not manually called, will be initialized with default settings. This method must be called before calling any LiveKit SDK API.

Implementation

static Future<void> initialize({bool bypassVoiceProcessing = false}) async {
  if (lkPlatformIsMobile()) {
    await rtc.WebRTC.initialize(options: {
      if (bypassVoiceProcessing) 'bypassVoiceProcessing': bypassVoiceProcessing,
    });

    Native.bypassVoiceProcessing = bypassVoiceProcessing;
  }
}