1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-02-16 21:52:38 +00:00
comunicmobile/lib/models/call_config.dart

18 lines
399 B
Dart
Raw Normal View History

2020-04-20 13:43:17 +02:00
/// Call configuration
///
/// @author Pierre Hubert
class CallConfig {
final List<String> iceServers;
2020-04-20 13:43:17 +02:00
const CallConfig({
required this.iceServers,
2022-03-11 16:27:01 +01:00
});
/// Turn this call configuration into the right for the WebRTC plugin
Map<String, dynamic> get pluginConfig => {
2021-02-12 18:20:28 +01:00
"iceServers": iceServers.map((f) => {"url": f}).toList(),
"sdpSemantics": "unified-plan",
};
2020-04-20 13:43:17 +02:00
}