mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Rationalize config
This commit is contained in:
		@@ -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": [],
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user