1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-29 16:26:27 +00:00
comunicmobile/lib/models/call_config.dart

18 lines
399 B
Dart
Raw Normal View History

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