Update RingRTC to v2.10.6
This commit is contained in:
parent
a3315bcb68
commit
d11283f0f1
6 changed files with 42 additions and 33 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue