Update RingRTC to v2.10.6

This commit is contained in:
Fedor Indutny 2021-06-29 07:39:53 -07:00 committed by GitHub
parent a3315bcb68
commit d11283f0f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 42 additions and 33 deletions

View file

@ -31,15 +31,13 @@ class FakeGroupCallVideoFrameSource implements VideoFrameSource {
this.dimensions = [width, height];
}
receiveVideoFrame(
destinationBuffer: ArrayBuffer
): [number, number] | undefined {
receiveVideoFrame(destinationBuffer: Buffer): [number, number] | undefined {
// Simulate network jitter. Also improves performance when testing.
if (Math.random() < 0.5) {
return undefined;
}
new Uint8Array(destinationBuffer).set(this.sourceArray);
destinationBuffer.set(this.sourceArray);
return this.dimensions;
}
}