diff --git a/lib/ui/screens/call_screen.dart b/lib/ui/screens/call_screen.dart index e59c480..df9ddae 100644 --- a/lib/ui/screens/call_screen.dart +++ b/lib/ui/screens/call_screen.dart @@ -237,13 +237,17 @@ class _CallScreenState extends SafeState { setState(() {}); // Open stream - final peerConnection = await createPeerConnection(_conf.pluginConfig, { + final peerConnection = await createPeerConnection( + _conf.pluginConfig..addAll({"sdpSemantics": "unified-plan"}), { "mandatory": {}, "optional": [], }); _peersConnections[userID()] = peerConnection; - await peerConnection.addStream(_localStream); + + for (final track in _localStream.getTracks()) { + await peerConnection.addTrack(track, _localStream); + } peerConnection.onAddStream = (s) => throw Exception("Got a new stream on main peer connection!");