mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-03 19:54:12 +00:00 
			
		
		
		
	Attempt to fix call issue
This commit is contained in:
		@@ -237,13 +237,17 @@ class _CallScreenState extends SafeState<CallScreen> {
 | 
				
			|||||||
      setState(() {});
 | 
					      setState(() {});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      // Open stream
 | 
					      // Open stream
 | 
				
			||||||
      final peerConnection = await createPeerConnection(_conf.pluginConfig, {
 | 
					      final peerConnection = await createPeerConnection(
 | 
				
			||||||
 | 
					          _conf.pluginConfig..addAll({"sdpSemantics": "unified-plan"}), {
 | 
				
			||||||
        "mandatory": {},
 | 
					        "mandatory": {},
 | 
				
			||||||
        "optional": [],
 | 
					        "optional": [],
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      _peersConnections[userID()] = peerConnection;
 | 
					      _peersConnections[userID()] = peerConnection;
 | 
				
			||||||
      await peerConnection.addStream(_localStream);
 | 
					
 | 
				
			||||||
 | 
					      for (final track in _localStream.getTracks()) {
 | 
				
			||||||
 | 
					        await peerConnection.addTrack(track, _localStream);
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      peerConnection.onAddStream =
 | 
					      peerConnection.onAddStream =
 | 
				
			||||||
          (s) => throw Exception("Got a new stream on main peer connection!");
 | 
					          (s) => throw Exception("Got a new stream on main peer connection!");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user