Update to RingRTC v2.25.0

This commit is contained in:
Jim Gustafson
2023-02-17 19:25:24 -08:00
committed by GitHub
parent 164f64fec0
commit ea642d99cd
4 changed files with 15 additions and 7 deletions

View File

@@ -32,7 +32,11 @@ class FakeGroupCallVideoFrameSource implements VideoFrameSource {
this.dimensions = [width, height];
}
receiveVideoFrame(destinationBuffer: Buffer): [number, number] | undefined {
receiveVideoFrame(
destinationBuffer: Buffer,
_maxWidth: number,
_maxHeight: number
): [number, number] | undefined {
// Simulate network jitter. Also improves performance when testing.
if (Math.random() < 0.5) {
return undefined;