@signalapp/ringrtc 2.35.0 → 2.37.0
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.
package/dist/acknowledgments.md
CHANGED
|
@@ -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-core 0.1.0, partial-default-derive 0.1.0, regex-aot 0.1.0, ringrtc 2.
|
|
672
|
+
## libsignal-core 0.1.0, partial-default-derive 0.1.0, regex-aot 0.1.0, ringrtc 2.37.0
|
|
673
673
|
|
|
674
674
|
```
|
|
675
675
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -411,11 +411,11 @@ export declare class RemoteDeviceState {
|
|
|
411
411
|
presenting: boolean | undefined;
|
|
412
412
|
sharingScreen: boolean | undefined;
|
|
413
413
|
videoAspectRatio: number | undefined;
|
|
414
|
-
addedTime: string
|
|
415
|
-
speakerTime: string
|
|
414
|
+
addedTime: string;
|
|
415
|
+
speakerTime: string;
|
|
416
416
|
forwardingVideo: boolean | undefined;
|
|
417
417
|
isHigherResolutionPending: boolean;
|
|
418
|
-
constructor(demuxId: number, userId: Buffer, mediaKeysReceived: boolean);
|
|
418
|
+
constructor(demuxId: number, userId: Buffer, addedTime: string, speakerTime: string, mediaKeysReceived: boolean);
|
|
419
419
|
}
|
|
420
420
|
export declare class GroupMemberInfo {
|
|
421
421
|
userId: Buffer;
|
|
@@ -516,11 +516,9 @@ export declare class CallingMessage {
|
|
|
516
516
|
offer?: OfferMessage;
|
|
517
517
|
answer?: AnswerMessage;
|
|
518
518
|
iceCandidates?: Array<IceCandidateMessage>;
|
|
519
|
-
legacyHangup?: HangupMessage;
|
|
520
519
|
busy?: BusyMessage;
|
|
521
520
|
hangup?: HangupMessage;
|
|
522
521
|
opaque?: OpaqueMessage;
|
|
523
|
-
supportsMultiRing?: boolean;
|
|
524
522
|
destinationDeviceId?: DeviceId;
|
|
525
523
|
}
|
|
526
524
|
export declare class OfferMessage {
|
package/dist/ringrtc/Service.js
CHANGED
|
@@ -495,12 +495,9 @@ class RingRTCType {
|
|
|
495
495
|
this.sendSignaling(remoteUserId, remoteDeviceId, callId, broadcast, message);
|
|
496
496
|
}
|
|
497
497
|
sendSignaling(remoteUserId, remoteDeviceId, callId, broadcast, message) {
|
|
498
|
-
/* eslint-disable no-param-reassign */
|
|
499
|
-
message.supportsMultiRing = true;
|
|
500
498
|
if (!broadcast) {
|
|
501
499
|
message.destinationDeviceId = remoteDeviceId;
|
|
502
500
|
}
|
|
503
|
-
/* eslint-enable no-param-reassign */
|
|
504
501
|
(async () => {
|
|
505
502
|
if (this.handleOutgoingSignaling) {
|
|
506
503
|
const signalingResult = await this.handleOutgoingSignaling(remoteUserId, message);
|
|
@@ -984,12 +981,6 @@ class RingRTCType {
|
|
|
984
981
|
const hangupDeviceId = message.hangup.deviceId || null;
|
|
985
982
|
this.callManager.receivedHangup(remoteUserId, remoteDeviceId, callId, hangupType, hangupDeviceId);
|
|
986
983
|
}
|
|
987
|
-
if (message.legacyHangup?.callId) {
|
|
988
|
-
const callId = message.legacyHangup.callId;
|
|
989
|
-
const hangupType = message.legacyHangup.type || HangupType.Normal;
|
|
990
|
-
const hangupDeviceId = message.legacyHangup.deviceId || null;
|
|
991
|
-
this.callManager.receivedHangup(remoteUserId, remoteDeviceId, callId, hangupType, hangupDeviceId);
|
|
992
|
-
}
|
|
993
984
|
if (message.busy?.callId) {
|
|
994
985
|
const callId = message.busy.callId;
|
|
995
986
|
this.callManager.receivedBusy(remoteUserId, remoteDeviceId, callId);
|
|
@@ -1409,11 +1400,13 @@ class LocalDeviceState {
|
|
|
1409
1400
|
exports.LocalDeviceState = LocalDeviceState;
|
|
1410
1401
|
// All remote devices in a group call and their associated state.
|
|
1411
1402
|
class RemoteDeviceState {
|
|
1412
|
-
constructor(demuxId, userId, mediaKeysReceived) {
|
|
1403
|
+
constructor(demuxId, userId, addedTime, speakerTime, mediaKeysReceived) {
|
|
1413
1404
|
this.demuxId = demuxId;
|
|
1414
1405
|
this.userId = userId;
|
|
1415
1406
|
this.mediaKeysReceived = mediaKeysReceived;
|
|
1416
1407
|
this.audioLevel = 0;
|
|
1408
|
+
this.addedTime = addedTime;
|
|
1409
|
+
this.speakerTime = speakerTime;
|
|
1417
1410
|
this.isHigherResolutionPending = false;
|
|
1418
1411
|
}
|
|
1419
1412
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/ringrtc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.37.0",
|
|
4
4
|
"description": "Signal Messenger voice and video calling library.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"config": {
|
|
27
27
|
"prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
|
|
28
|
-
"prebuildChecksum": "
|
|
28
|
+
"prebuildChecksum": "18e1b063d5c187491fa7666b2993cc62b7b76b9098257bd1f545ca350c6dc6f5"
|
|
29
29
|
},
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "AGPL-3.0-only",
|
|
@@ -15,11 +15,30 @@ const { Transform } = require('stream');
|
|
|
15
15
|
const { pipeline } = require('stream/promises');
|
|
16
16
|
|
|
17
17
|
const VERSION = process.env.npm_package_version;
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
let config;
|
|
20
|
+
|
|
21
|
+
// When installing from the registry, `npm` doesn't set `npm_package_config_*`
|
|
22
|
+
// environment variables. However, unlike `yarn`, `npm` always provides a path
|
|
23
|
+
// to the `package.json` so we can read `config` from it.
|
|
24
|
+
if (process.env.npm_package_json) {
|
|
25
|
+
const json = fs.readFileSync(process.env.npm_package_json, {
|
|
26
|
+
encoding: 'utf8',
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
({ config } = JSON.parse(json));
|
|
30
|
+
} else {
|
|
31
|
+
config = {
|
|
32
|
+
prebuildUrl: process.env.npm_package_config_prebuildUrl,
|
|
33
|
+
prebuildChecksum: process.env.npm_package_config_prebuildChecksum,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const URL = config.prebuildUrl.replace(
|
|
19
38
|
'${npm_package_version}', // eslint-disable-line no-template-curly-in-string
|
|
20
39
|
VERSION
|
|
21
40
|
);
|
|
22
|
-
const HASH =
|
|
41
|
+
const HASH = config.prebuildChecksum;
|
|
23
42
|
|
|
24
43
|
const tmpFile = path.join(__dirname, 'unverified-prebuild.tmp');
|
|
25
44
|
const finalFile = path.join(__dirname, 'prebuild.tar.gz');
|