Merge branch 'voip/fix-add-ice-candidate-timing' into 'main'
Fix the timing error when the candidate arrives before the answer sdp. See merge request famedly/company/frontend/famedlysdk!1208
This commit is contained in:
commit
1e605c6728
|
|
@ -658,6 +658,13 @@ class CallSession {
|
|||
json['sdpMLineIndex']?.round() ?? 0,
|
||||
);
|
||||
|
||||
if (direction == CallDirection.kOutgoing &&
|
||||
pc != null &&
|
||||
await pc!.getRemoteDescription() == null) {
|
||||
remoteCandidates.add(candidate);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (pc != null && inviteOrAnswerSent && remotePartyId != null) {
|
||||
try {
|
||||
await pc!.addCandidate(candidate);
|
||||
|
|
|
|||
Loading…
Reference in New Issue