Merge pull request #6468 from prlanzarin/fix-safari-rtc-error

Fix Safari issue with processing ICE candidates for video
This commit is contained in:
Fred Dixon 2018-12-21 15:14:25 -05:00 committed by GitHub
commit 6d08b74f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,6 +353,9 @@ class VideoProvider extends Component {
if (error) {
return this.logger('debug', JSON.stringify(error), { cameraId: id });
}
peer.didSDPAnswered = true;
this._processIceQueue(peer, id);
});
} else {
this.logger('warn', '[startResponse] Message arrived after the peer was already thrown out, discarding it...');
@ -508,9 +511,7 @@ class VideoProvider extends Component {
};
this.sendMessage(message);
this._processIceQueue(peer, id);
peer.didSDPAnswered = true;
});
});
if (this.webRtcPeers[id].peerConnection) {