@signalapp/ringrtc 2.57.1 → 2.58.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -669,7 +669,7 @@ For more information on this, and how to apply and follow the GNU AGPL, see
669
669
 
670
670
  ```
671
671
 
672
- ## libsignal-account-keys 0.1.0, libsignal-core 0.1.0, mrp 2.57.1, protobuf 2.57.1, ringrtc 2.57.1, regex-aot 0.1.0, partial-default-derive 0.1.0
672
+ ## libsignal-account-keys 0.1.0, libsignal-core 0.1.0, mrp 2.58.1, protobuf 2.58.1, ringrtc 2.58.1, regex-aot 0.1.0, partial-default-derive 0.1.0
673
673
 
674
674
  ```
675
675
  GNU AFFERO GENERAL PUBLIC LICENSE
@@ -1739,7 +1739,7 @@ THIS SOFTWARE.
1739
1739
 
1740
1740
  ```
1741
1741
 
1742
- ## cubeb-core 0.30.1, cubeb-sys 0.30.1, cubeb 0.30.1
1742
+ ## cubeb-core 0.31.2, cubeb-sys 0.31.2, cubeb 0.31.2
1743
1743
 
1744
1744
  ```
1745
1745
  Copyright © 2017 Mozilla Foundation
@@ -95,6 +95,8 @@ export declare class RingRTCType {
95
95
  handleOutgoingSignaling: ((remoteUserId: UserId, message: CallingMessage) => Promise<boolean>) | null;
96
96
  handleIncomingCall: ((call: Call) => Promise<boolean>) | null;
97
97
  handleStartCall: ((call: Call) => Promise<boolean>) | null;
98
+ handleOutputDeviceChanged: ((devices: Array<AudioDevice>) => Promise<void>) | null;
99
+ handleInputDeviceChanged: ((devices: Array<AudioDevice>) => Promise<void>) | null;
98
100
  handleAutoEndedIncomingCallRequest: ((callId: CallId, remoteUserId: UserId, reason: CallEndedReason, ageSec: number, wasVideoCall: boolean, receivedAtCounter: number | undefined, receivedAtDate: number | undefined) => void) | null;
99
101
  handleLogMessage: ((level: CallLogLevel, fileName: string, line: number, message: string) => void) | null;
100
102
  handleSendHttpRequest: ((requestId: number, url: string, method: HttpMethod, headers: {
@@ -253,6 +255,8 @@ export declare class RingRTCType {
253
255
  handleSpeechEvent(clientId: GroupCallClientId, event: SpeechEvent): void;
254
256
  onRemoteMute(clientId: GroupCallClientId, demuxId: number): void;
255
257
  onObservedRemoteMute(clientId: GroupCallClientId, sourceDemuxId: number, targetDemuxId: number): void;
258
+ onOutputDeviceChanged(devices: Array<AudioDevice>): void;
259
+ onInputDeviceChanged(devices: Array<AudioDevice>): void;
256
260
  onLogMessage(level: number, fileName: string, line: number, message: string): void;
257
261
  logError(message: string): void;
258
262
  logWarn(message: string): void;
@@ -268,6 +268,8 @@ class RingRTCType {
268
268
  this.handleOutgoingSignaling = null;
269
269
  this.handleIncomingCall = null;
270
270
  this.handleStartCall = null;
271
+ this.handleOutputDeviceChanged = null;
272
+ this.handleInputDeviceChanged = null;
271
273
  this.handleAutoEndedIncomingCallRequest = null;
272
274
  this.handleLogMessage = null;
273
275
  this.handleSendHttpRequest = null;
@@ -1002,6 +1004,22 @@ class RingRTCType {
1002
1004
  });
1003
1005
  }
1004
1006
  // Called by Rust
1007
+ onOutputDeviceChanged(devices) {
1008
+ (async () => {
1009
+ if (this.handleOutputDeviceChanged) {
1010
+ await this.handleOutputDeviceChanged(devices);
1011
+ }
1012
+ })().catch(e => this.logError(e.toString()));
1013
+ }
1014
+ // Called by Rust
1015
+ onInputDeviceChanged(devices) {
1016
+ (async () => {
1017
+ if (this.handleInputDeviceChanged) {
1018
+ await this.handleInputDeviceChanged(devices);
1019
+ }
1020
+ })().catch(e => this.logError(e.toString()));
1021
+ }
1022
+ // Called by Rust
1005
1023
  onLogMessage(level, fileName, line, message) {
1006
1024
  if (this.handleLogMessage) {
1007
1025
  this.handleLogMessage(level, fileName, line, message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/ringrtc",
3
- "version": "2.57.1",
3
+ "version": "2.58.1",
4
4
  "description": "Signal Messenger voice and video calling library.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "config": {
30
30
  "prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
31
- "prebuildChecksum": "b9091e108e6dd7dae48582e6708a628d41ac88e26e49b9da9a08b639aa098318"
31
+ "prebuildChecksum": "156609d5e659506b0e65a3a540b548cb19a18ecb4b4256b1b7d80fe3242604a2"
32
32
  },
33
33
  "author": "",
34
34
  "license": "AGPL-3.0-only",