1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 22:39:22 +00:00

Attempt to fix call issue

This commit is contained in:
Pierre HUBERT 2021-02-07 18:44:57 +01:00
parent 7c82aa5edf
commit 5e51fbe617

View File

@ -237,13 +237,17 @@ class _CallScreenState extends SafeState<CallScreen> {
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!");