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:
parent
7c82aa5edf
commit
5e51fbe617
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user