@signalapp/ringrtc 2.48.6 → 2.49.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 +3 -62
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/ringrtc/Service.d.ts +7 -0
- package/dist/ringrtc/Service.js +22 -1
- package/package.json +2 -2
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.49.0, protobuf 2.49.0, ringrtc 2.49.0, regex-aot 0.1.0, partial-default-derive 0.1.0
|
|
673
673
|
|
|
674
674
|
```
|
|
675
675
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -1453,7 +1453,7 @@ THIS SOFTWARE.
|
|
|
1453
1453
|
|
|
1454
1454
|
```
|
|
1455
1455
|
|
|
1456
|
-
## cubeb-core 0.
|
|
1456
|
+
## cubeb-core 0.18.0, cubeb-sys 0.18.0, cubeb 0.18.0
|
|
1457
1457
|
|
|
1458
1458
|
```
|
|
1459
1459
|
Copyright © 2017 Mozilla Foundation
|
|
@@ -1682,7 +1682,7 @@ DEALINGS IN THE SOFTWARE.
|
|
|
1682
1682
|
|
|
1683
1683
|
```
|
|
1684
1684
|
|
|
1685
|
-
## bitflags 1.3.2, bitflags 2.6.0, log 0.4.22, regex-automata 0.4.
|
|
1685
|
+
## bitflags 1.3.2, bitflags 2.6.0, log 0.4.22, regex-automata 0.4.8, regex-syntax 0.8.5, regex 1.11.1
|
|
1686
1686
|
|
|
1687
1687
|
```
|
|
1688
1688
|
Copyright (c) 2014 The Rust Project Developers
|
|
@@ -4916,65 +4916,6 @@ THE SOFTWARE.
|
|
|
4916
4916
|
|
|
4917
4917
|
```
|
|
4918
4918
|
|
|
4919
|
-
## libevent
|
|
4920
|
-
|
|
4921
|
-
```
|
|
4922
|
-
Libevent is available for use under the following license, commonly known
|
|
4923
|
-
as the 3-clause (or "modified") BSD license:
|
|
4924
|
-
|
|
4925
|
-
==============================
|
|
4926
|
-
Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
|
|
4927
|
-
Copyright (c) 2007-2010 Niels Provos and Nick Mathewson
|
|
4928
|
-
|
|
4929
|
-
Redistribution and use in source and binary forms, with or without
|
|
4930
|
-
modification, are permitted provided that the following conditions
|
|
4931
|
-
are met:
|
|
4932
|
-
1. Redistributions of source code must retain the above copyright
|
|
4933
|
-
notice, this list of conditions and the following disclaimer.
|
|
4934
|
-
2. Redistributions in binary form must reproduce the above copyright
|
|
4935
|
-
notice, this list of conditions and the following disclaimer in the
|
|
4936
|
-
documentation and/or other materials provided with the distribution.
|
|
4937
|
-
3. The name of the author may not be used to endorse or promote products
|
|
4938
|
-
derived from this software without specific prior written permission.
|
|
4939
|
-
|
|
4940
|
-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
4941
|
-
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
4942
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
4943
|
-
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
4944
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
4945
|
-
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
4946
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
4947
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
4948
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
4949
|
-
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
4950
|
-
==============================
|
|
4951
|
-
|
|
4952
|
-
Portions of Libevent are based on works by others, also made available by
|
|
4953
|
-
them under the three-clause BSD license above. The copyright notices are
|
|
4954
|
-
available in the corresponding source files; the license is as above. Here's
|
|
4955
|
-
a list:
|
|
4956
|
-
|
|
4957
|
-
log.c:
|
|
4958
|
-
Copyright (c) 2000 Dug Song <dugsong@monkey.org>
|
|
4959
|
-
Copyright (c) 1993 The Regents of the University of California.
|
|
4960
|
-
|
|
4961
|
-
strlcpy.c:
|
|
4962
|
-
Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
4963
|
-
|
|
4964
|
-
win32.c:
|
|
4965
|
-
Copyright (c) 2003 Michael A. Davis <mike@datanerds.net>
|
|
4966
|
-
|
|
4967
|
-
evport.c:
|
|
4968
|
-
Copyright (c) 2007 Sun Microsystems
|
|
4969
|
-
|
|
4970
|
-
min_heap.h:
|
|
4971
|
-
Copyright (c) 2006 Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
|
|
4972
|
-
|
|
4973
|
-
tree.h:
|
|
4974
|
-
Copyright 2002 Niels Provos <provos@citi.umich.edu>
|
|
4975
|
-
|
|
4976
|
-
```
|
|
4977
|
-
|
|
4978
4919
|
## libjpeg_turbo
|
|
4979
4920
|
|
|
4980
4921
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RingRTCType } from './ringrtc/Service';
|
|
2
|
-
export { AnswerMessage, AudioDevice, DataMode, BusyMessage, Call, CallEndedReason, CallId, CallLogLevel, CallMessageUrgency, CallSettings, CallState, CallingMessage, ConnectionState, DeviceId, GroupCall, GroupCallEndReason, GroupCallKind, GroupCallObserver, GroupMemberInfo, HangupMessage, HangupType, HttpMethod, HttpResult, IceCandidateMessage, JoinState, LocalDeviceState, OfferMessage, OfferType, OpaqueMessage, PeekDeviceInfo, PeekInfo, PeekStatusCodes, Reaction, RemoteDeviceState, RingCancelReason, RingRTCType, RingUpdate, UserId, VideoCapturer, VideoRenderer, VideoRequest, callIdFromEra, callIdFromRingId, } from './ringrtc/Service';
|
|
2
|
+
export { AnswerMessage, AudioDevice, DataMode, BusyMessage, Call, CallEndedReason, CallId, CallLogLevel, CallMessageUrgency, CallSettings, CallState, CallingMessage, ConnectionState, DeviceId, GroupCall, GroupCallEndReason, GroupCallKind, GroupCallObserver, GroupMemberInfo, HangupMessage, HangupType, HttpMethod, HttpResult, IceCandidateMessage, JoinState, LocalDeviceState, OfferMessage, OfferType, OpaqueMessage, PeekDeviceInfo, PeekInfo, PeekStatusCodes, Reaction, RemoteDeviceState, RingCancelReason, RingRTCType, RingUpdate, SpeechEvent, UserId, VideoCapturer, VideoRenderer, VideoRequest, callIdFromEra, callIdFromRingId, } from './ringrtc/Service';
|
|
3
3
|
export { CanvasVideoRenderer, GumVideoCapturer, VideoFrameSource, MAX_VIDEO_CAPTURE_AREA, MAX_VIDEO_CAPTURE_BUFFER_SIZE, MAX_VIDEO_CAPTURE_HEIGHT, MAX_VIDEO_CAPTURE_WIDTH, } from './ringrtc/VideoSupport';
|
|
4
4
|
export { CallLinkRootKey, CallLinkRestrictions, CallLinkState, } from './ringrtc/CallLinks';
|
|
5
5
|
export declare const RingRTC: RingRTCType;
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
5
5
|
//
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.RingRTC = exports.CallLinkState = exports.CallLinkRestrictions = exports.CallLinkRootKey = exports.MAX_VIDEO_CAPTURE_WIDTH = exports.MAX_VIDEO_CAPTURE_HEIGHT = exports.MAX_VIDEO_CAPTURE_BUFFER_SIZE = exports.MAX_VIDEO_CAPTURE_AREA = exports.GumVideoCapturer = exports.CanvasVideoRenderer = exports.callIdFromRingId = exports.callIdFromEra = exports.VideoRequest = exports.RingUpdate = exports.RingRTCType = exports.RingCancelReason = exports.RemoteDeviceState = exports.PeekStatusCodes = exports.OpaqueMessage = exports.OfferType = exports.OfferMessage = exports.LocalDeviceState = exports.JoinState = exports.IceCandidateMessage = exports.HttpMethod = exports.HangupType = exports.HangupMessage = exports.GroupMemberInfo = exports.GroupCallKind = exports.GroupCallEndReason = exports.GroupCall = exports.ConnectionState = exports.CallingMessage = exports.CallState = exports.CallMessageUrgency = exports.CallLogLevel = exports.CallEndedReason = exports.Call = exports.BusyMessage = exports.DataMode = exports.AnswerMessage = void 0;
|
|
7
|
+
exports.RingRTC = exports.CallLinkState = exports.CallLinkRestrictions = exports.CallLinkRootKey = exports.MAX_VIDEO_CAPTURE_WIDTH = exports.MAX_VIDEO_CAPTURE_HEIGHT = exports.MAX_VIDEO_CAPTURE_BUFFER_SIZE = exports.MAX_VIDEO_CAPTURE_AREA = exports.GumVideoCapturer = exports.CanvasVideoRenderer = exports.callIdFromRingId = exports.callIdFromEra = exports.VideoRequest = exports.SpeechEvent = exports.RingUpdate = exports.RingRTCType = exports.RingCancelReason = exports.RemoteDeviceState = exports.PeekStatusCodes = exports.OpaqueMessage = exports.OfferType = exports.OfferMessage = exports.LocalDeviceState = exports.JoinState = exports.IceCandidateMessage = exports.HttpMethod = exports.HangupType = exports.HangupMessage = exports.GroupMemberInfo = exports.GroupCallKind = exports.GroupCallEndReason = exports.GroupCall = exports.ConnectionState = exports.CallingMessage = exports.CallState = exports.CallMessageUrgency = exports.CallLogLevel = exports.CallEndedReason = exports.Call = exports.BusyMessage = exports.DataMode = exports.AnswerMessage = void 0;
|
|
8
8
|
const Service_1 = require("./ringrtc/Service");
|
|
9
9
|
var Service_2 = require("./ringrtc/Service");
|
|
10
10
|
Object.defineProperty(exports, "AnswerMessage", { enumerable: true, get: function () { return Service_2.AnswerMessage; } });
|
|
@@ -35,6 +35,7 @@ Object.defineProperty(exports, "RemoteDeviceState", { enumerable: true, get: fun
|
|
|
35
35
|
Object.defineProperty(exports, "RingCancelReason", { enumerable: true, get: function () { return Service_2.RingCancelReason; } });
|
|
36
36
|
Object.defineProperty(exports, "RingRTCType", { enumerable: true, get: function () { return Service_2.RingRTCType; } });
|
|
37
37
|
Object.defineProperty(exports, "RingUpdate", { enumerable: true, get: function () { return Service_2.RingUpdate; } });
|
|
38
|
+
Object.defineProperty(exports, "SpeechEvent", { enumerable: true, get: function () { return Service_2.SpeechEvent; } });
|
|
38
39
|
Object.defineProperty(exports, "VideoRequest", { enumerable: true, get: function () { return Service_2.VideoRequest; } });
|
|
39
40
|
Object.defineProperty(exports, "callIdFromEra", { enumerable: true, get: function () { return Service_2.callIdFromEra; } });
|
|
40
41
|
Object.defineProperty(exports, "callIdFromRingId", { enumerable: true, get: function () { return Service_2.callIdFromRingId; } });
|
|
@@ -248,6 +248,7 @@ export declare class RingRTCType {
|
|
|
248
248
|
handleEnded(clientId: GroupCallClientId, reason: GroupCallEndReason): void;
|
|
249
249
|
groupCallRingUpdate(groupId: GroupId, ringId: bigint, sender: GroupCallUserId, state: RingUpdate): void;
|
|
250
250
|
handleRtcStatsReportComplete(reportJson: string): void;
|
|
251
|
+
handleSpeechEvent(clientId: GroupCallClientId, event: SpeechEvent): void;
|
|
251
252
|
onLogMessage(level: number, fileName: string, line: number, message: string): void;
|
|
252
253
|
logError(message: string): void;
|
|
253
254
|
logWarn(message: string): void;
|
|
@@ -408,6 +409,10 @@ export declare enum GroupCallEndReason {
|
|
|
408
409
|
ServerChangedDemuxId = 14,
|
|
409
410
|
HasMaxDevices = 15
|
|
410
411
|
}
|
|
412
|
+
export declare enum SpeechEvent {
|
|
413
|
+
StoppedSpeaking = 0,
|
|
414
|
+
LowerHandSuggestion = 1
|
|
415
|
+
}
|
|
411
416
|
export declare enum CallMessageUrgency {
|
|
412
417
|
Droppable = 0,
|
|
413
418
|
HandleImmediately = 1
|
|
@@ -482,6 +487,7 @@ export interface GroupCallObserver {
|
|
|
482
487
|
onRaisedHands(groupCall: GroupCall, raisedHands: Array<number>): void;
|
|
483
488
|
onPeekChanged(groupCall: GroupCall): void;
|
|
484
489
|
onEnded(groupCall: GroupCall, reason: GroupCallEndReason): void;
|
|
490
|
+
onSpeechEvent(groupCall: GroupCall, event: SpeechEvent): void;
|
|
485
491
|
}
|
|
486
492
|
export declare class GroupCall {
|
|
487
493
|
private readonly _kind;
|
|
@@ -534,6 +540,7 @@ export declare class GroupCall {
|
|
|
534
540
|
getVideoSource(remoteDemuxId: number): GroupCallVideoFrameSource;
|
|
535
541
|
setRemoteAspectRatio(remoteDemuxId: number, aspectRatio: number): void;
|
|
536
542
|
setRtcStatsInterval(intervalMillis: number): void;
|
|
543
|
+
handleSpeechEvent(event: SpeechEvent): void;
|
|
537
544
|
}
|
|
538
545
|
declare class GroupCallVideoFrameSource {
|
|
539
546
|
private readonly _callManager;
|
package/dist/ringrtc/Service.js
CHANGED
|
@@ -7,7 +7,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
8
|
};
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
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.SpeechEvent = 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
13
|
const INVALID_CLIENT_ID = 0;
|
|
@@ -35,6 +35,7 @@ class NativeCallManager {
|
|
|
35
35
|
'RingRTC-AnyAddressPortsKillSwitch': 'Enabled',
|
|
36
36
|
'RingRTC-PruneTurnPorts': 'Enabled',
|
|
37
37
|
'WebRTC-Bwe-ProbingConfiguration': 'skip_if_est_larger_than_fraction_of_max:0.99',
|
|
38
|
+
'WebRTC-IncreaseIceCandidatePriorityHostSrflx': 'Enabled',
|
|
38
39
|
}, config.field_trials);
|
|
39
40
|
/* eslint-disable prefer-template */
|
|
40
41
|
const fieldTrialsString = Object.entries(fieldTrials)
|
|
@@ -962,6 +963,15 @@ class RingRTCType {
|
|
|
962
963
|
}
|
|
963
964
|
}
|
|
964
965
|
// Called by Rust
|
|
966
|
+
handleSpeechEvent(clientId, event) {
|
|
967
|
+
sillyDeadlockProtection(() => {
|
|
968
|
+
const groupCall = this._groupCallByClientId.get(clientId);
|
|
969
|
+
if (groupCall) {
|
|
970
|
+
groupCall.handleSpeechEvent(event);
|
|
971
|
+
}
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
// Called by Rust
|
|
965
975
|
onLogMessage(level, fileName, line, message) {
|
|
966
976
|
if (this.handleLogMessage) {
|
|
967
977
|
this.handleLogMessage(level, fileName, line, message);
|
|
@@ -1427,6 +1437,14 @@ var GroupCallEndReason;
|
|
|
1427
1437
|
GroupCallEndReason[GroupCallEndReason["ServerChangedDemuxId"] = 14] = "ServerChangedDemuxId";
|
|
1428
1438
|
GroupCallEndReason[GroupCallEndReason["HasMaxDevices"] = 15] = "HasMaxDevices";
|
|
1429
1439
|
})(GroupCallEndReason || (exports.GroupCallEndReason = GroupCallEndReason = {}));
|
|
1440
|
+
// Matches SpeechEvent in rust.
|
|
1441
|
+
var SpeechEvent;
|
|
1442
|
+
(function (SpeechEvent) {
|
|
1443
|
+
// User was speaking but stopped.
|
|
1444
|
+
SpeechEvent[SpeechEvent["StoppedSpeaking"] = 0] = "StoppedSpeaking";
|
|
1445
|
+
// User has been speaking for a while -- maybe lower hand?
|
|
1446
|
+
SpeechEvent[SpeechEvent["LowerHandSuggestion"] = 1] = "LowerHandSuggestion";
|
|
1447
|
+
})(SpeechEvent || (exports.SpeechEvent = SpeechEvent = {}));
|
|
1430
1448
|
var CallMessageUrgency;
|
|
1431
1449
|
(function (CallMessageUrgency) {
|
|
1432
1450
|
CallMessageUrgency[CallMessageUrgency["Droppable"] = 0] = "Droppable";
|
|
@@ -1722,6 +1740,9 @@ class GroupCall {
|
|
|
1722
1740
|
setRtcStatsInterval(intervalMillis) {
|
|
1723
1741
|
this._callManager.setRtcStatsInterval(this._clientId, intervalMillis);
|
|
1724
1742
|
}
|
|
1743
|
+
handleSpeechEvent(event) {
|
|
1744
|
+
this._observer.onSpeechEvent(this, event);
|
|
1745
|
+
}
|
|
1725
1746
|
}
|
|
1726
1747
|
exports.GroupCall = GroupCall;
|
|
1727
1748
|
// Implements VideoSource for use in CanvasVideoRenderer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/ringrtc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.49.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": "d81b14b108c4c32b855c37d55fb84f4e4062b12bdec1eb2bdbab608ff9d00c82"
|
|
29
29
|
},
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "AGPL-3.0-only",
|