1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Add option to set ice candidate pool size

This commit is contained in:
David Baker
2021-02-16 15:47:48 +00:00
parent c82bc35202
commit 61e19c30cb
3 changed files with 8 additions and 0 deletions

View File

@@ -1686,6 +1686,7 @@ export class MatrixCall extends EventEmitter {
const pc = new window.RTCPeerConnection({
iceTransportPolicy: this.forceTURN ? 'relay' : undefined,
iceServers: this.turnServers,
iceCandidatePoolSize: this.client._iceCandidatePoolSize,
});
// 'connectionstatechange' would be better, but firefox doesn't implement that.