@signalapp/ringrtc
Advanced tools
Comparing version 2.42.0 to 2.43.0
@@ -99,3 +99,3 @@ /// <reference types="node" /> | ||
handleStartCall: ((call: Call) => Promise<boolean>) | null; | ||
handleAutoEndedIncomingCallRequest: ((callId: CallId, remoteUserId: UserId, reason: CallEndedReason, ageSec: number, wasVideoCall: boolean, receivedAtCounter: number | undefined) => void) | null; | ||
handleAutoEndedIncomingCallRequest: ((callId: CallId, remoteUserId: UserId, reason: CallEndedReason, ageSec: number, wasVideoCall: boolean, receivedAtCounter: number | undefined, receivedAtDate: number | undefined) => void) | null; | ||
handleLogMessage: ((level: CallLogLevel, fileName: string, line: number, message: string) => void) | null; | ||
@@ -253,3 +253,13 @@ handleSendHttpRequest: ((requestId: number, url: string, method: HttpMethod, headers: { | ||
logInfo(message: string): void; | ||
handleCallingMessage(remoteUserId: UserId, remoteUuid: Buffer | null, remoteDeviceId: DeviceId, localDeviceId: DeviceId, messageAgeSec: number, messageReceivedAtCounter: number, message: CallingMessage, senderIdentityKey: Buffer, receiverIdentityKey: Buffer): void; | ||
handleCallingMessage(message: CallingMessage, options: { | ||
remoteUserId: UserId; | ||
remoteUuid?: Buffer; | ||
remoteDeviceId: DeviceId; | ||
localDeviceId: DeviceId; | ||
ageSec: number; | ||
receivedAtCounter: number; | ||
receivedAtDate: number; | ||
senderIdentityKey: Buffer; | ||
receiverIdentityKey: Buffer; | ||
}): void; | ||
sendHttpRequest(requestId: number, url: string, method: HttpMethod, headers: { | ||
@@ -256,0 +266,0 @@ [name: string]: string; |
@@ -45,4 +45,4 @@ /// <reference types="node" /> | ||
setLocalPreview(localPreview: Ref<HTMLVideoElement> | undefined): void; | ||
enableCapture(): void; | ||
enableCaptureAndSend(sender: VideoFrameSender, options?: GumVideoCaptureOptions): void; | ||
enableCapture(): Promise<void>; | ||
enableCaptureAndSend(sender?: VideoFrameSender, options?: GumVideoCaptureOptions): Promise<void>; | ||
disable(): void; | ||
@@ -49,0 +49,0 @@ setPreferredDevice(deviceId: string): Promise<void>; |
@@ -75,10 +75,12 @@ "use strict"; | ||
} | ||
enableCapture() { | ||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
this.startCapturing(this.defaultCaptureOptions); | ||
async enableCapture() { | ||
return this.startCapturing(this.defaultCaptureOptions); | ||
} | ||
enableCaptureAndSend(sender, options) { | ||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
this.startCapturing(options ?? this.defaultCaptureOptions); | ||
this.startSending(sender); | ||
async enableCaptureAndSend(sender, options) { | ||
const startCapturingPromise = this.startCapturing(options ?? this.defaultCaptureOptions); | ||
if (sender) { | ||
this.startSending(sender); | ||
} | ||
// Bubble up the error. | ||
return startCapturingPromise; | ||
} | ||
@@ -99,7 +101,4 @@ disable() { | ||
this.disable(); | ||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
this.startCapturing(captureOptions); | ||
if (sender) { | ||
this.startSending(sender); | ||
} | ||
// Bubble up the error if starting video failed. | ||
return this.enableCaptureAndSend(sender, captureOptions); | ||
} | ||
@@ -196,2 +195,4 @@ } | ||
} | ||
// Re-raise so that callers can surface this condition to the user. | ||
throw e; | ||
} | ||
@@ -198,0 +199,0 @@ } |
{ | ||
"name": "@signalapp/ringrtc", | ||
"version": "2.42.0", | ||
"version": "2.43.0", | ||
"description": "Signal Messenger voice and video calling library.", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
"prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz", | ||
"prebuildChecksum": "c7ce95993ed4cc77b6b912e052deb4c8671d63e44605c12b576a5872293f687e" | ||
"prebuildChecksum": "391a681a172c7ebef3ee8fdf994273030cb5673b556bd5c6fb0f8f78416dbce6" | ||
}, | ||
@@ -31,0 +31,0 @@ "author": "", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
410000
3326