1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 04:49:21 +00:00

Rationalize config

This commit is contained in:
Pierre HUBERT 2021-02-12 18:20:28 +01:00
parent 5e51fbe617
commit a3e5b1a70b
2 changed files with 3 additions and 3 deletions

View File

@ -13,6 +13,7 @@ class CallConfig {
/// Turn this call configuration into the right for the WebRTC plugin
Map<String, dynamic> get pluginConfig => {
"iceServers": iceServers.map((f) => {"url": f}).toList()
"iceServers": iceServers.map((f) => {"url": f}).toList(),
"sdpSemantics": "unified-plan",
};
}

View File

@ -237,8 +237,7 @@ class _CallScreenState extends SafeState<CallScreen> {
setState(() {});
// Open stream
final peerConnection = await createPeerConnection(
_conf.pluginConfig..addAll({"sdpSemantics": "unified-plan"}), {
final peerConnection = await createPeerConnection(_conf.pluginConfig, {
"mandatory": {},
"optional": [],
});