1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-26 21:08:52 +00:00
comunicmobile/lib/models/call_config.dart

19 lines
429 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 => {
"iceServers": iceServers.map((f) => {"url": f}).toList()
};
2020-04-20 11:43:17 +00:00
}