mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			429 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			429 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:flutter/material.dart';
 | 
						|
 | 
						|
/// Call configuration
 | 
						|
///
 | 
						|
/// @author Pierre Hubert
 | 
						|
 | 
						|
class CallConfig {
 | 
						|
  final List<String> iceServers;
 | 
						|
 | 
						|
  const CallConfig({
 | 
						|
    @required this.iceServers,
 | 
						|
  }) : assert(iceServers != null);
 | 
						|
 | 
						|
  /// Turn this call configuration into the right for the WebRTC plugin
 | 
						|
  Map<String, dynamic> get pluginConfig => {
 | 
						|
        "iceServers": iceServers.map((f) => {"url": f}).toList()
 | 
						|
      };
 | 
						|
}
 |