mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
don't ignore end-of-ICE candidates
This commit is contained in:
parent
7ce5cdfc4a
commit
8aa62b2573
@ -818,14 +818,16 @@ export class PeerCall implements IDisposable {
|
||||
|
||||
private async addIceCandidates(candidates: RTCIceCandidate[], log: ILogItem): Promise<void> {
|
||||
for (const candidate of candidates) {
|
||||
let logItem;
|
||||
if (
|
||||
(candidate.sdpMid === null || candidate.sdpMid === undefined) &&
|
||||
(candidate.sdpMLineIndex === null || candidate.sdpMLineIndex === undefined)
|
||||
) {
|
||||
log.log(`Ignoring remote ICE candidate with no sdpMid or sdpMLineIndex`);
|
||||
continue;
|
||||
logItem = log.log(`Got remote ICE end-of-ICE candidates`);
|
||||
}
|
||||
else {
|
||||
logItem = log.log(`Adding remote ICE ${candidate.sdpMid} candidate: ${candidate.candidate}`);
|
||||
}
|
||||
const logItem = log.log(`Adding remote ICE ${candidate.sdpMid} candidate: ${candidate.candidate}`);
|
||||
try {
|
||||
await this.peerConnection.addIceCandidate(candidate);
|
||||
} catch (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user