@signalapp/ringrtc 2.32.0 → 2.33.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 +1 -58
- package/dist/index.d.ts +1 -1
- package/dist/ringrtc/Service.d.ts +9 -0
- package/dist/ringrtc/Service.js +17 -0
- package/package.json +3 -3
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
|
-
## regex-aot 0.1.0, ringrtc 2.
|
|
672
|
+
## regex-aot 0.1.0, ringrtc 2.33.0
|
|
673
673
|
|
|
674
674
|
```
|
|
675
675
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -1722,32 +1722,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
|
1722
1722
|
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
1723
1723
|
DEALINGS IN THE SOFTWARE.
|
|
1724
1724
|
|
|
1725
|
-
```
|
|
1726
|
-
|
|
1727
|
-
## num_cpus 1.16.0
|
|
1728
|
-
|
|
1729
|
-
```
|
|
1730
|
-
Copyright (c) 2015
|
|
1731
|
-
|
|
1732
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1733
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
1734
|
-
in the Software without restriction, including without limitation the rights
|
|
1735
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1736
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
1737
|
-
furnished to do so, subject to the following conditions:
|
|
1738
|
-
|
|
1739
|
-
The above copyright notice and this permission notice shall be included in
|
|
1740
|
-
all copies or substantial portions of the Software.
|
|
1741
|
-
|
|
1742
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1743
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1744
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1745
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1746
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1747
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1748
|
-
THE SOFTWARE.
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
1725
|
```
|
|
1752
1726
|
|
|
1753
1727
|
## neon 0.10.1, neon-build 0.10.1, neon-macros 0.10.1, neon-runtime 0.10.1
|
|
@@ -2659,37 +2633,6 @@ DEALINGS IN THE SOFTWARE.
|
|
|
2659
2633
|
|
|
2660
2634
|
```
|
|
2661
2635
|
|
|
2662
|
-
## tokio 1.32.0
|
|
2663
|
-
|
|
2664
|
-
```
|
|
2665
|
-
Copyright (c) 2023 Tokio Contributors
|
|
2666
|
-
|
|
2667
|
-
Permission is hereby granted, free of charge, to any
|
|
2668
|
-
person obtaining a copy of this software and associated
|
|
2669
|
-
documentation files (the "Software"), to deal in the
|
|
2670
|
-
Software without restriction, including without
|
|
2671
|
-
limitation the rights to use, copy, modify, merge,
|
|
2672
|
-
publish, distribute, sublicense, and/or sell copies of
|
|
2673
|
-
the Software, and to permit persons to whom the Software
|
|
2674
|
-
is furnished to do so, subject to the following
|
|
2675
|
-
conditions:
|
|
2676
|
-
|
|
2677
|
-
The above copyright notice and this permission notice
|
|
2678
|
-
shall be included in all copies or substantial portions
|
|
2679
|
-
of the Software.
|
|
2680
|
-
|
|
2681
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
2682
|
-
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
2683
|
-
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
2684
|
-
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
2685
|
-
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
2686
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
2687
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
2688
|
-
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
2689
|
-
DEALINGS IN THE SOFTWARE.
|
|
2690
|
-
|
|
2691
|
-
```
|
|
2692
|
-
|
|
2693
2636
|
## getrandom 0.1.16, rand 0.7.3, rand_chacha 0.2.2, rand_core 0.5.1
|
|
2694
2637
|
|
|
2695
2638
|
```
|
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, 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, 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;
|
|
@@ -13,6 +13,10 @@ export interface PeekDeviceInfo {
|
|
|
13
13
|
demuxId: number;
|
|
14
14
|
userId?: GroupCallUserId;
|
|
15
15
|
}
|
|
16
|
+
export interface Reaction {
|
|
17
|
+
demuxId: number;
|
|
18
|
+
value: string;
|
|
19
|
+
}
|
|
16
20
|
export interface PeekInfo {
|
|
17
21
|
devices: Array<PeekDeviceInfo>;
|
|
18
22
|
creator?: GroupCallUserId;
|
|
@@ -209,6 +213,7 @@ export declare class RingRTCType {
|
|
|
209
213
|
handleNetworkRouteChanged(clientId: GroupCallClientId, localNetworkAdapterType: NetworkAdapterType): void;
|
|
210
214
|
handleAudioLevels(clientId: GroupCallClientId, capturedLevel: RawAudioLevel, receivedLevels: Array<ReceivedAudioLevel>): void;
|
|
211
215
|
handleLowBandwidthForVideo(clientId: GroupCallClientId, recovered: boolean): void;
|
|
216
|
+
handleReactions(clientId: GroupCallClientId, reactions: Array<Reaction>): void;
|
|
212
217
|
handleRemoteDevicesChanged(clientId: GroupCallClientId, remoteDeviceStates: Array<RemoteDeviceState>): void;
|
|
213
218
|
handlePeekChanged(clientId: GroupCallClientId, info: PeekInfo): void;
|
|
214
219
|
handlePeekResponse(requestId: number, statusCode: number, info: PeekInfo | undefined): void;
|
|
@@ -434,6 +439,7 @@ export interface GroupCallObserver {
|
|
|
434
439
|
onRemoteDeviceStatesChanged(groupCall: GroupCall): void;
|
|
435
440
|
onAudioLevels(groupCall: GroupCall): void;
|
|
436
441
|
onLowBandwidthForVideo(groupCall: GroupCall, recovered: boolean): void;
|
|
442
|
+
onReactions(groupCall: GroupCall, reactions: Array<Reaction>): void;
|
|
437
443
|
onPeekChanged(groupCall: GroupCall): void;
|
|
438
444
|
onEnded(groupCall: GroupCall, reason: GroupCallEndReason): void;
|
|
439
445
|
}
|
|
@@ -456,6 +462,7 @@ export declare class GroupCall {
|
|
|
456
462
|
getRemoteDeviceStates(): Array<RemoteDeviceState> | undefined;
|
|
457
463
|
getPeekInfo(): PeekInfo | undefined;
|
|
458
464
|
setOutgoingAudioMuted(muted: boolean): void;
|
|
465
|
+
react(value: string): void;
|
|
459
466
|
setOutgoingVideoMuted(muted: boolean): void;
|
|
460
467
|
setPresenting(presenting: boolean): void;
|
|
461
468
|
setOutgoingVideoIsScreenShare(isScreenShare: boolean): void;
|
|
@@ -476,6 +483,7 @@ export declare class GroupCall {
|
|
|
476
483
|
handleNetworkRouteChanged(localNetworkAdapterType: NetworkAdapterType): void;
|
|
477
484
|
handleAudioLevels(capturedLevel: RawAudioLevel, receivedLevels: Array<ReceivedAudioLevel>): void;
|
|
478
485
|
handleLowBandwidthForVideo(recovered: boolean): void;
|
|
486
|
+
handleReactions(reactions: Array<Reaction>): void;
|
|
479
487
|
handleRemoteDevicesChanged(remoteDeviceStates: Array<RemoteDeviceState>): void;
|
|
480
488
|
handlePeekChanged(info: PeekInfo): void;
|
|
481
489
|
handleEnded(reason: GroupCallEndReason): void;
|
|
@@ -596,6 +604,7 @@ export interface CallManager {
|
|
|
596
604
|
setPresenting(clientId: GroupCallClientId, presenting: boolean): void;
|
|
597
605
|
setOutgoingGroupCallVideoIsScreenShare(clientId: GroupCallClientId, isScreenShare: boolean): void;
|
|
598
606
|
groupRing(clientId: GroupCallClientId, recipient: Buffer | undefined): void;
|
|
607
|
+
groupReact(clientId: GroupCallClientId, value: string): void;
|
|
599
608
|
resendMediaKeys(clientId: GroupCallClientId): void;
|
|
600
609
|
setDataMode(clientId: GroupCallClientId, dataMode: DataMode): void;
|
|
601
610
|
requestVideo(clientId: GroupCallClientId, resolutions: Array<VideoRequest>, activeSpeakerHeight: number): void;
|
package/dist/ringrtc/Service.js
CHANGED
|
@@ -145,6 +145,7 @@ NativeCallManager.prototype.join = Native_1.default.cm_join;
|
|
|
145
145
|
NativeCallManager.prototype.leave = Native_1.default.cm_leave;
|
|
146
146
|
NativeCallManager.prototype.disconnect = Native_1.default.cm_disconnect;
|
|
147
147
|
NativeCallManager.prototype.groupRing = Native_1.default.cm_groupRing;
|
|
148
|
+
NativeCallManager.prototype.groupReact = Native_1.default.cm_groupReact;
|
|
148
149
|
NativeCallManager.prototype.setOutgoingAudioMuted =
|
|
149
150
|
Native_1.default.cm_setOutgoingAudioMuted;
|
|
150
151
|
NativeCallManager.prototype.setOutgoingVideoMuted =
|
|
@@ -833,6 +834,15 @@ class RingRTCType {
|
|
|
833
834
|
});
|
|
834
835
|
}
|
|
835
836
|
// Called by Rust
|
|
837
|
+
handleReactions(clientId, reactions) {
|
|
838
|
+
sillyDeadlockProtection(() => {
|
|
839
|
+
const groupCall = this._groupCallByClientId.get(clientId);
|
|
840
|
+
if (groupCall) {
|
|
841
|
+
groupCall.handleReactions(reactions);
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
// Called by Rust
|
|
836
846
|
handleRemoteDevicesChanged(clientId, remoteDeviceStates) {
|
|
837
847
|
sillyDeadlockProtection(() => {
|
|
838
848
|
const groupCall = this._groupCallByClientId.get(clientId);
|
|
@@ -1516,6 +1526,10 @@ class GroupCall {
|
|
|
1516
1526
|
this._observer.onLocalDeviceStateChanged(this);
|
|
1517
1527
|
}
|
|
1518
1528
|
// Called by UI
|
|
1529
|
+
react(value) {
|
|
1530
|
+
this._callManager.groupReact(this._clientId, value);
|
|
1531
|
+
}
|
|
1532
|
+
// Called by UI
|
|
1519
1533
|
setOutgoingVideoMuted(muted) {
|
|
1520
1534
|
this._localDeviceState.videoMuted = muted;
|
|
1521
1535
|
this._callManager.setOutgoingVideoMuted(this._clientId, muted);
|
|
@@ -1617,6 +1631,9 @@ class GroupCall {
|
|
|
1617
1631
|
handleLowBandwidthForVideo(recovered) {
|
|
1618
1632
|
this._observer.onLowBandwidthForVideo(this, recovered);
|
|
1619
1633
|
}
|
|
1634
|
+
handleReactions(reactions) {
|
|
1635
|
+
this._observer.onReactions(this, reactions);
|
|
1636
|
+
}
|
|
1620
1637
|
// Called by Rust via RingRTC object
|
|
1621
1638
|
handleRemoteDevicesChanged(remoteDeviceStates) {
|
|
1622
1639
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/ringrtc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.33.0",
|
|
4
4
|
"description": "Signal Messenger voice and video calling library.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
},
|
|
25
25
|
"config": {
|
|
26
26
|
"prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
|
|
27
|
-
"prebuildChecksum": "
|
|
27
|
+
"prebuildChecksum": "4e431ad65093548bd787a8b1a045d1fad3944e74cbc3f031dc53320fba92af7e"
|
|
28
28
|
},
|
|
29
29
|
"author": "",
|
|
30
30
|
"license": "AGPL-3.0-only",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"tar": "^6.
|
|
32
|
+
"tar": "^6.1.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/chai": "4.3.6",
|