1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Create peer connection for remote streams

This commit is contained in:
2020-04-20 17:24:42 +02:00
parent 473402149a
commit 45d903bcf7
3 changed files with 55 additions and 4 deletions

View File

@ -10,4 +10,9 @@ class CallConfig {
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()
};
}