mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 06:49:22 +00:00
Rationalize config
This commit is contained in:
parent
5e51fbe617
commit
a3e5b1a70b
@ -13,6 +13,7 @@ class CallConfig {
|
|||||||
|
|
||||||
/// Turn this call configuration into the right for the WebRTC plugin
|
/// Turn this call configuration into the right for the WebRTC plugin
|
||||||
Map<String, dynamic> get pluginConfig => {
|
Map<String, dynamic> get pluginConfig => {
|
||||||
"iceServers": iceServers.map((f) => {"url": f}).toList()
|
"iceServers": iceServers.map((f) => {"url": f}).toList(),
|
||||||
|
"sdpSemantics": "unified-plan",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -237,8 +237,7 @@ class _CallScreenState extends SafeState<CallScreen> {
|
|||||||
setState(() {});
|
setState(() {});
|
||||||
|
|
||||||
// Open stream
|
// Open stream
|
||||||
final peerConnection = await createPeerConnection(
|
final peerConnection = await createPeerConnection(_conf.pluginConfig, {
|
||||||
_conf.pluginConfig..addAll({"sdpSemantics": "unified-plan"}), {
|
|
||||||
"mandatory": {},
|
"mandatory": {},
|
||||||
"optional": [],
|
"optional": [],
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user