getRTCConfiguration method

dynamic getRTCConfiguration(
  1. Map<String, dynamic>? config

Get default RTC configuration with ICE servers from Milicast signaling server and merge it with the user configuration provided. User configuration has priority over defaults.

config - Options to configure the new RTCPeerConnection. Returns a Map Future object which represents the RTCConfiguration.


getRTCConfiguration(Map<String, dynamic>? config) async {
  _logger.i('Getting RTC configuration');
  Map<String, dynamic> configParsed = config ?? {};
  configParsed['iceServers'] =
      configParsed['iceServers'] ?? await getRTCIceServers();
  _logger.d('parseconfig $configParsed');
  return configParsed;