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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 7 deletions

View file

@ -92,7 +92,7 @@
"@react-spring/web": "9.5.5",
"@signalapp/better-sqlite3": "8.4.3",
"@signalapp/libsignal-client": "0.22.0",
"@signalapp/ringrtc": "2.24.0",
"@signalapp/ringrtc": "2.25.0",
"@types/fabric": "4.5.3",
"array-move": "2.1.0",
"backbone": "1.4.0",

View file

@ -140,7 +140,11 @@ export const GroupCallRemoteParticipant: React.FC<PropsType> = React.memo(
// for other participants, or pixel data from a previous frame. That's why we
// return early and use the `frameWidth` and `frameHeight`.
const frameBuffer = getFrameBuffer();
const frameDimensions = videoFrameSource.receiveVideoFrame(frameBuffer);
const frameDimensions = videoFrameSource.receiveVideoFrame(
frameBuffer,
MAX_FRAME_WIDTH,
MAX_FRAME_HEIGHT
);
if (!frameDimensions) {
return;
}

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;

View file

@ -2187,10 +2187,10 @@
ws "^8.4.2"
zod "^3.20.2"
"@signalapp/ringrtc@2.24.0":
version "2.24.0"
resolved "https://registry.yarnpkg.com/@signalapp/ringrtc/-/ringrtc-2.24.0.tgz#634160d24b2e13967a634e0f3236b2b4b5854091"
integrity sha512-BtpTRxSSCPIV6WBxxGuXUj16ZND/O30+l20Ck2TKDFwRyJUDuBfrNUCGtGXvmmt/OQx6wDG3ZyfjePpffdhEvQ==
"@signalapp/ringrtc@2.25.0":
version "2.25.0"
resolved "https://registry.yarnpkg.com/@signalapp/ringrtc/-/ringrtc-2.25.0.tgz#dfa75860c69dd6a81aef568d9fe3fb1a0573a4f7"
integrity sha512-/kOtgYjhqAdPPmmrcX8MaH4YPQX4xVXCzy8ph4NC1NnCK0DiBP9b+jC2sijdx8rHeKhXCcCyeiHVm1LOcnPNjQ==
dependencies:
tar "^6.1.0"