1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-28 22:08:50 +00:00
comunicmobile/lib/models/call_config.dart

20 lines
470 B
Dart
Raw Normal View History

2020-04-20 11:43:17 +00:00
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 => {
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
}