mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 12:58:51 +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
|
||||
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(() {});
|
||||
|
||||
// Open stream
|
||||
final peerConnection = await createPeerConnection(
|
||||
_conf.pluginConfig..addAll({"sdpSemantics": "unified-plan"}), {
|
||||
final peerConnection = await createPeerConnection(_conf.pluginConfig, {
|
||||
"mandatory": {},
|
||||
"optional": [],
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user