@signalapp/ringrtc 2.48.4 → 2.48.7

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-core 0.1.0, mrp 2.48.4, protobuf 2.48.4, ringrtc 2.48.4, regex-aot 0.1.0, partial-default-derive 0.1.0
672
+ ## libsignal-core 0.1.0, mrp 2.48.7, protobuf 2.48.7, ringrtc 2.48.7, 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.14.0, cubeb-sys 0.14.0, cubeb 0.14.0
1456
+ ## cubeb-core 0.17.0, cubeb-sys 0.17.0, cubeb 0.17.0
1457
1457
 
1458
1458
  ```
1459
1459
  Copyright © 2017 Mozilla Foundation
@@ -1620,7 +1620,7 @@ SOFTWARE.
1620
1620
 
1621
1621
  ```
1622
1622
 
1623
- ## cc 1.1.5, cfg-if 1.0.0, cmake 0.1.50, pkg-config 0.3.30
1623
+ ## cc 1.1.31, cfg-if 1.0.0, cmake 0.1.50, pkg-config 0.3.30
1624
1624
 
1625
1625
  ```
1626
1626
  Copyright (c) 2014 Alex Crichton
@@ -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.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.8, regex-syntax 0.8.5, regex 1.11.1
1686
1686
 
1687
1687
  ```
1688
1688
  Copyright (c) 2014 The Rust Project Developers
@@ -3409,6 +3409,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3409
3409
  THE SOFTWARE.
3410
3410
 
3411
3411
 
3412
+ ```
3413
+
3414
+ ## shlex 1.3.0
3415
+
3416
+ ```
3417
+ The MIT License (MIT)
3418
+
3419
+ Copyright (c) 2015 Nicholas Allegra (comex).
3420
+
3421
+ Permission is hereby granted, free of charge, to any person obtaining a copy
3422
+ of this software and associated documentation files (the "Software"), to deal
3423
+ in the Software without restriction, including without limitation the rights
3424
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
3425
+ copies of the Software, and to permit persons to whom the Software is
3426
+ furnished to do so, subject to the following conditions:
3427
+
3428
+ The above copyright notice and this permission notice shall be included in
3429
+ all copies or substantial portions of the Software.
3430
+
3431
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3432
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3433
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3434
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3435
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
3436
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
3437
+ THE SOFTWARE.
3438
+
3412
3439
  ```
3413
3440
 
3414
3441
  ## jni 0.21.1
@@ -4889,65 +4916,6 @@ THE SOFTWARE.
4889
4916
 
4890
4917
  ```
4891
4918
 
4892
- ## libevent
4893
-
4894
- ```
4895
- Libevent is available for use under the following license, commonly known
4896
- as the 3-clause (or "modified") BSD license:
4897
-
4898
- ==============================
4899
- Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
4900
- Copyright (c) 2007-2010 Niels Provos and Nick Mathewson
4901
-
4902
- Redistribution and use in source and binary forms, with or without
4903
- modification, are permitted provided that the following conditions
4904
- are met:
4905
- 1. Redistributions of source code must retain the above copyright
4906
- notice, this list of conditions and the following disclaimer.
4907
- 2. Redistributions in binary form must reproduce the above copyright
4908
- notice, this list of conditions and the following disclaimer in the
4909
- documentation and/or other materials provided with the distribution.
4910
- 3. The name of the author may not be used to endorse or promote products
4911
- derived from this software without specific prior written permission.
4912
-
4913
- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
4914
- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
4915
- OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
4916
- IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
4917
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
4918
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
4919
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
4920
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
4921
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
4922
- THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4923
- ==============================
4924
-
4925
- Portions of Libevent are based on works by others, also made available by
4926
- them under the three-clause BSD license above. The copyright notices are
4927
- available in the corresponding source files; the license is as above. Here's
4928
- a list:
4929
-
4930
- log.c:
4931
- Copyright (c) 2000 Dug Song <dugsong@monkey.org>
4932
- Copyright (c) 1993 The Regents of the University of California.
4933
-
4934
- strlcpy.c:
4935
- Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
4936
-
4937
- win32.c:
4938
- Copyright (c) 2003 Michael A. Davis <mike@datanerds.net>
4939
-
4940
- evport.c:
4941
- Copyright (c) 2007 Sun Microsystems
4942
-
4943
- min_heap.h:
4944
- Copyright (c) 2006 Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
4945
-
4946
- tree.h:
4947
- Copyright 2002 Niels Provos <provos@citi.umich.edu>
4948
-
4949
- ```
4950
-
4951
4919
  ## libjpeg_turbo
4952
4920
 
4953
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;
@@ -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;
@@ -962,6 +962,15 @@ class RingRTCType {
962
962
  }
963
963
  }
964
964
  // Called by Rust
965
+ handleSpeechEvent(clientId, event) {
966
+ sillyDeadlockProtection(() => {
967
+ const groupCall = this._groupCallByClientId.get(clientId);
968
+ if (groupCall) {
969
+ groupCall.handleSpeechEvent(event);
970
+ }
971
+ });
972
+ }
973
+ // Called by Rust
965
974
  onLogMessage(level, fileName, line, message) {
966
975
  if (this.handleLogMessage) {
967
976
  this.handleLogMessage(level, fileName, line, message);
@@ -1427,6 +1436,14 @@ var GroupCallEndReason;
1427
1436
  GroupCallEndReason[GroupCallEndReason["ServerChangedDemuxId"] = 14] = "ServerChangedDemuxId";
1428
1437
  GroupCallEndReason[GroupCallEndReason["HasMaxDevices"] = 15] = "HasMaxDevices";
1429
1438
  })(GroupCallEndReason || (exports.GroupCallEndReason = GroupCallEndReason = {}));
1439
+ // Matches SpeechEvent in rust.
1440
+ var SpeechEvent;
1441
+ (function (SpeechEvent) {
1442
+ // User was speaking but stopped.
1443
+ SpeechEvent[SpeechEvent["StoppedSpeaking"] = 0] = "StoppedSpeaking";
1444
+ // User has been speaking for a while -- maybe lower hand?
1445
+ SpeechEvent[SpeechEvent["LowerHandSuggestion"] = 1] = "LowerHandSuggestion";
1446
+ })(SpeechEvent || (exports.SpeechEvent = SpeechEvent = {}));
1430
1447
  var CallMessageUrgency;
1431
1448
  (function (CallMessageUrgency) {
1432
1449
  CallMessageUrgency[CallMessageUrgency["Droppable"] = 0] = "Droppable";
@@ -1722,6 +1739,9 @@ class GroupCall {
1722
1739
  setRtcStatsInterval(intervalMillis) {
1723
1740
  this._callManager.setRtcStatsInterval(this._clientId, intervalMillis);
1724
1741
  }
1742
+ handleSpeechEvent(event) {
1743
+ this._observer.onSpeechEvent(this, event);
1744
+ }
1725
1745
  }
1726
1746
  exports.GroupCall = GroupCall;
1727
1747
  // Implements VideoSource for use in CanvasVideoRenderer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalapp/ringrtc",
3
- "version": "2.48.4",
3
+ "version": "2.48.7",
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": "e64ccb9c1614564ccd9e71881ef5d7f2860719db2e1305b7d9440ceb793d3d7e"
28
+ "prebuildChecksum": "9b008b38837a7eb13056c3829e40236400bc61f28adc565aadb65545353a4807"
29
29
  },
30
30
  "author": "",
31
31
  "license": "AGPL-3.0-only",