1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 06:53:23 +00:00
comunicmobile/lib/models/call_config.dart
2022-03-11 16:27:01 +01:00

18 lines
399 B
Dart

/// Call configuration
///
/// @author Pierre Hubert
class CallConfig {
final List<String> iceServers;
const CallConfig({
required this.iceServers,
});
/// Turn this call configuration into the right for the WebRTC plugin
Map<String, dynamic> get pluginConfig => {
"iceServers": iceServers.map((f) => {"url": f}).toList(),
"sdpSemantics": "unified-plan",
};
}