@signalapp/ringrtc 2.47.1 → 2.48.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, mrp 2.
|
|
672
|
+
## libsignal-core 0.1.0, mrp 2.48.0, protobuf 2.48.0, ringrtc 2.48.0, regex-aot 0.1.0, partial-default-derive 0.1.0
|
|
673
673
|
|
|
674
674
|
```
|
|
675
675
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
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 {
|
|
@@ -714,6 +715,10 @@ class RingRTCType {
|
|
|
714
715
|
// Called by UX
|
|
715
716
|
getGroupCall(groupId, sfuUrl, hkdfExtraInfo, audioLevelsIntervalMillis, observer) {
|
|
716
717
|
const clientId = this.callManager.createGroupCallClient(groupId, sfuUrl, hkdfExtraInfo, audioLevelsIntervalMillis || 0);
|
|
718
|
+
if (clientId === INVALID_CLIENT_ID) {
|
|
719
|
+
// Return undefined since the group call client creation failed.
|
|
720
|
+
return undefined;
|
|
721
|
+
}
|
|
717
722
|
const groupCall = new GroupCall(GroupCallKind.SignalGroup, this.callManager, observer, clientId);
|
|
718
723
|
this._groupCallByClientId.set(groupCall.clientId, groupCall);
|
|
719
724
|
return groupCall;
|
|
@@ -721,6 +726,10 @@ class RingRTCType {
|
|
|
721
726
|
// Called by UX
|
|
722
727
|
getCallLinkCall(sfuUrl, authCredentialPresentation, rootKey, adminPasskey, hkdfExtraInfo, audioLevelsIntervalMillis, observer) {
|
|
723
728
|
const clientId = this.callManager.createCallLinkCallClient(sfuUrl, authCredentialPresentation, rootKey.bytes, adminPasskey, hkdfExtraInfo, audioLevelsIntervalMillis || 0);
|
|
729
|
+
if (clientId === INVALID_CLIENT_ID) {
|
|
730
|
+
// Return undefined since the call link client creation failed.
|
|
731
|
+
return undefined;
|
|
732
|
+
}
|
|
724
733
|
const groupCall = new GroupCall(GroupCallKind.CallLink, this.callManager, observer, clientId);
|
|
725
734
|
this._groupCallByClientId.set(groupCall.clientId, groupCall);
|
|
726
735
|
return groupCall;
|
|
@@ -1689,8 +1698,8 @@ class GroupCall {
|
|
|
1689
1698
|
}
|
|
1690
1699
|
// Called by Rust via RingRTC object
|
|
1691
1700
|
handleEnded(reason) {
|
|
1692
|
-
this._observer.onEnded(this, reason);
|
|
1693
1701
|
this._callManager.deleteGroupCallClient(this._clientId);
|
|
1702
|
+
this._observer.onEnded(this, reason);
|
|
1694
1703
|
}
|
|
1695
1704
|
// With this, a GroupCall is a VideoFrameSender
|
|
1696
1705
|
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.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": "59f0faf37d58eb92ab346ea71b2bad7df5416a3cb0d4e0d0e8ec09ddd13e9ca8"
|
|
29
29
|
},
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "AGPL-3.0-only",
|