@signalapp/ringrtc 2.47.1 → 2.48.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.
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, mrp 2.
|
|
672
|
+
## libsignal-core 0.1.0, mrp 2.48.1, protobuf 2.48.1, ringrtc 2.48.1, regex-aot 0.1.0, partial-default-derive 0.1.0
|
|
673
673
|
|
|
674
674
|
```
|
|
675
675
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -1453,6 +1453,25 @@ THIS SOFTWARE.
|
|
|
1453
1453
|
|
|
1454
1454
|
```
|
|
1455
1455
|
|
|
1456
|
+
## cubeb-core 0.14.0, cubeb-sys 0.14.0, cubeb 0.14.0
|
|
1457
|
+
|
|
1458
|
+
```
|
|
1459
|
+
Copyright © 2017 Mozilla Foundation
|
|
1460
|
+
|
|
1461
|
+
Permission to use, copy, modify, and distribute this software for any
|
|
1462
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
1463
|
+
copyright notice and this permission notice appear in all copies.
|
|
1464
|
+
|
|
1465
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
1466
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
1467
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
1468
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
1469
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
1470
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
1471
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
1472
|
+
|
|
1473
|
+
```
|
|
1474
|
+
|
|
1456
1475
|
## windows-sys 0.45.0, windows-sys 0.52.0, windows-targets 0.42.2, windows-targets 0.52.6, windows_aarch64_msvc 0.42.2, windows_aarch64_msvc 0.52.6, windows_x86_64_gnu 0.52.6, windows_x86_64_msvc 0.42.2, windows_x86_64_msvc 0.52.6
|
|
1457
1476
|
|
|
1458
1477
|
```
|
|
@@ -1601,7 +1620,7 @@ SOFTWARE.
|
|
|
1601
1620
|
|
|
1602
1621
|
```
|
|
1603
1622
|
|
|
1604
|
-
## cfg-if 1.0.0
|
|
1623
|
+
## cc 1.1.5, cfg-if 1.0.0, cmake 0.1.50, pkg-config 0.3.30
|
|
1605
1624
|
|
|
1606
1625
|
```
|
|
1607
1626
|
Copyright (c) 2014 Alex Crichton
|
|
@@ -1663,7 +1682,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
1663
1682
|
|
|
1664
1683
|
```
|
|
1665
1684
|
|
|
1666
|
-
## bitflags 2.6.0, log 0.4.22, regex-automata 0.4.7, regex-syntax 0.8.4, regex 1.10.5
|
|
1685
|
+
## bitflags 1.3.2, bitflags 2.6.0, log 0.4.22, regex-automata 0.4.7, regex-syntax 0.8.4, regex 1.10.5
|
|
1667
1686
|
|
|
1668
1687
|
```
|
|
1669
1688
|
Copyright (c) 2014 The Rust Project Developers
|
|
@@ -3110,7 +3129,7 @@ SOFTWARE.
|
|
|
3110
3129
|
|
|
3111
3130
|
```
|
|
3112
3131
|
|
|
3113
|
-
## cesu8 1.1.0, neon 1.0.0, windows-core 0.57.0, windows-implement 0.57.0, windows-interface 0.57.0, windows-result 0.1.2, windows 0.57.0
|
|
3132
|
+
## cesu8 1.1.0, neon 1.0.0, windows-core 0.57.0, windows-core 0.58.0, windows-implement 0.57.0, windows-implement 0.58.0, windows-interface 0.57.0, windows-interface 0.58.0, windows-result 0.1.2, windows-result 0.2.0, windows-strings 0.1.0, windows 0.57.0, windows 0.58.0
|
|
3114
3133
|
|
|
3115
3134
|
```
|
|
3116
3135
|
MIT License
|
|
@@ -5,6 +5,7 @@ export declare const callIdFromEra: (era: string) => CallId;
|
|
|
5
5
|
export declare function callIdFromRingId(ringId: bigint): CallId;
|
|
6
6
|
declare class Config {
|
|
7
7
|
field_trials: Record<string, string> | undefined;
|
|
8
|
+
use_ringrtc_adm?: boolean;
|
|
8
9
|
}
|
|
9
10
|
type GroupId = Buffer;
|
|
10
11
|
type GroupCallUserId = Buffer;
|
package/dist/ringrtc/Service.js
CHANGED
|
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
10
10
|
exports.CallLogLevel = exports.CallEndedReason = exports.CallState = exports.RingCancelReason = exports.DataMode = exports.HangupType = exports.OpaqueMessage = exports.HangupMessage = exports.BusyMessage = exports.IceCandidateMessage = exports.AnswerMessage = exports.OfferType = exports.OfferMessage = exports.CallingMessage = exports.GroupCall = exports.GroupCallKind = exports.VideoRequest = exports.GroupMemberInfo = exports.RemoteDeviceState = exports.LocalDeviceState = exports.HttpMethod = exports.RingUpdate = exports.CallMessageUrgency = exports.GroupCallEndReason = exports.JoinState = exports.ConnectionState = exports.Call = exports.RingRTCType = exports.ReceivedAudioLevel = exports.NetworkRoute = exports.PeekStatusCodes = exports.callIdFromRingId = exports.callIdFromEra = void 0;
|
|
11
11
|
const CallLinks_1 = require("./CallLinks");
|
|
12
12
|
const Native_1 = __importDefault(require("./Native"));
|
|
13
|
+
const INVALID_CLIENT_ID = 0;
|
|
13
14
|
exports.callIdFromEra = Native_1.default.callIdFromEra;
|
|
14
15
|
function callIdFromRingId(ringId) {
|
|
15
16
|
return {
|
|
@@ -43,7 +44,8 @@ class NativeCallManager {
|
|
|
43
44
|
Object.defineProperty(this, Native_1.default.callEndpointPropertyKey, {
|
|
44
45
|
configurable: true,
|
|
45
46
|
get() {
|
|
46
|
-
const
|
|
47
|
+
const use_ringrtc_adm = config.use_ringrtc_adm === undefined ? false : config.use_ringrtc_adm;
|
|
48
|
+
const callEndpoint = Native_1.default.createCallEndpoint(this, fieldTrialsString, use_ringrtc_adm);
|
|
47
49
|
Object.defineProperty(this, Native_1.default.callEndpointPropertyKey, {
|
|
48
50
|
configurable: true,
|
|
49
51
|
value: callEndpoint,
|
|
@@ -714,6 +716,10 @@ class RingRTCType {
|
|
|
714
716
|
// Called by UX
|
|
715
717
|
getGroupCall(groupId, sfuUrl, hkdfExtraInfo, audioLevelsIntervalMillis, observer) {
|
|
716
718
|
const clientId = this.callManager.createGroupCallClient(groupId, sfuUrl, hkdfExtraInfo, audioLevelsIntervalMillis || 0);
|
|
719
|
+
if (clientId === INVALID_CLIENT_ID) {
|
|
720
|
+
// Return undefined since the group call client creation failed.
|
|
721
|
+
return undefined;
|
|
722
|
+
}
|
|
717
723
|
const groupCall = new GroupCall(GroupCallKind.SignalGroup, this.callManager, observer, clientId);
|
|
718
724
|
this._groupCallByClientId.set(groupCall.clientId, groupCall);
|
|
719
725
|
return groupCall;
|
|
@@ -721,6 +727,10 @@ class RingRTCType {
|
|
|
721
727
|
// Called by UX
|
|
722
728
|
getCallLinkCall(sfuUrl, authCredentialPresentation, rootKey, adminPasskey, hkdfExtraInfo, audioLevelsIntervalMillis, observer) {
|
|
723
729
|
const clientId = this.callManager.createCallLinkCallClient(sfuUrl, authCredentialPresentation, rootKey.bytes, adminPasskey, hkdfExtraInfo, audioLevelsIntervalMillis || 0);
|
|
730
|
+
if (clientId === INVALID_CLIENT_ID) {
|
|
731
|
+
// Return undefined since the call link client creation failed.
|
|
732
|
+
return undefined;
|
|
733
|
+
}
|
|
724
734
|
const groupCall = new GroupCall(GroupCallKind.CallLink, this.callManager, observer, clientId);
|
|
725
735
|
this._groupCallByClientId.set(groupCall.clientId, groupCall);
|
|
726
736
|
return groupCall;
|
|
@@ -1689,8 +1699,8 @@ class GroupCall {
|
|
|
1689
1699
|
}
|
|
1690
1700
|
// Called by Rust via RingRTC object
|
|
1691
1701
|
handleEnded(reason) {
|
|
1692
|
-
this._observer.onEnded(this, reason);
|
|
1693
1702
|
this._callManager.deleteGroupCallClient(this._clientId);
|
|
1703
|
+
this._observer.onEnded(this, reason);
|
|
1694
1704
|
}
|
|
1695
1705
|
// With this, a GroupCall is a VideoFrameSender
|
|
1696
1706
|
sendVideoFrame(width, height, format, buffer) {
|
|
@@ -106,7 +106,11 @@ class GumVideoCapturer {
|
|
|
106
106
|
const cameras = devices.filter(d => d.kind == 'videoinput');
|
|
107
107
|
return cameras;
|
|
108
108
|
}
|
|
109
|
-
getUserMedia(options) {
|
|
109
|
+
async getUserMedia(options) {
|
|
110
|
+
// Return provided media stream
|
|
111
|
+
if (options.mediaStream) {
|
|
112
|
+
return options.mediaStream;
|
|
113
|
+
}
|
|
110
114
|
const constraints = {
|
|
111
115
|
audio: false,
|
|
112
116
|
video: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/ringrtc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.48.1",
|
|
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": "85ee7fe9cccdf5c8b9f48cfbbc355fc57fc6387c60b41a374f34077cf2a2da91"
|
|
29
29
|
},
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "AGPL-3.0-only",
|