@signalapp/ringrtc 2.41.0 → 2.42.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, partial-default-derive 0.1.0, regex-aot 0.1.0, ringrtc 2.
|
|
672
|
+
## libsignal-core 0.1.0, partial-default-derive 0.1.0, regex-aot 0.1.0, ringrtc 2.42.0
|
|
673
673
|
|
|
674
674
|
```
|
|
675
675
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -104,6 +104,7 @@ export declare class RingRTCType {
|
|
|
104
104
|
handleSendCallMessage: ((recipientUuid: Buffer, message: Buffer, urgency: CallMessageUrgency) => void) | null;
|
|
105
105
|
handleSendCallMessageToGroup: ((groupId: Buffer, message: Buffer, urgency: CallMessageUrgency, overrideRecipients: Array<Buffer>) => void) | null;
|
|
106
106
|
handleGroupCallRingUpdate: ((groupId: Buffer, ringId: bigint, sender: Buffer, update: RingUpdate) => void) | null;
|
|
107
|
+
handleRtcStatsReport: ((reportJson: string) => void) | null;
|
|
107
108
|
constructor();
|
|
108
109
|
setConfig(config: Config): void;
|
|
109
110
|
setSelfUuid(uuid: Buffer): void;
|
|
@@ -243,6 +244,7 @@ export declare class RingRTCType {
|
|
|
243
244
|
handleEmptyResponse(requestId: number, statusCode: number, state: EmptyObj | undefined): void;
|
|
244
245
|
handleEnded(clientId: GroupCallClientId, reason: GroupCallEndReason): void;
|
|
245
246
|
groupCallRingUpdate(groupId: GroupId, ringId: bigint, sender: GroupCallUserId, state: RingUpdate): void;
|
|
247
|
+
handleRtcStatsReportComplete(reportJson: string): void;
|
|
246
248
|
onLogMessage(level: number, fileName: string, line: number, message: string): void;
|
|
247
249
|
logError(message: string): void;
|
|
248
250
|
logWarn(message: string): void;
|
|
@@ -513,6 +515,7 @@ export declare class GroupCall {
|
|
|
513
515
|
sendVideoFrame(width: number, height: number, format: VideoPixelFormatEnum, buffer: Buffer): void;
|
|
514
516
|
getVideoSource(remoteDemuxId: number): GroupCallVideoFrameSource;
|
|
515
517
|
setRemoteAspectRatio(remoteDemuxId: number, aspectRatio: number): void;
|
|
518
|
+
setRtcStatsInterval(intervalMillis: number): void;
|
|
516
519
|
}
|
|
517
520
|
declare class GroupCallVideoFrameSource {
|
|
518
521
|
private readonly _callManager;
|
|
@@ -637,6 +640,7 @@ export interface CallManager {
|
|
|
637
640
|
setGroupMembers(clientId: GroupCallClientId, members: Array<GroupMemberInfo>): void;
|
|
638
641
|
setMembershipProof(clientId: GroupCallClientId, proof: Buffer): void;
|
|
639
642
|
receiveGroupCallVideoFrame(clientId: GroupCallClientId, remoteDemuxId: number, buffer: Buffer, maxWidth: number, maxHeight: number): [number, number] | undefined;
|
|
643
|
+
setRtcStatsInterval(clientId: GroupCallClientId, intervalMillis: number): void;
|
|
640
644
|
readCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Buffer, linkRootKey: Buffer): void;
|
|
641
645
|
createCallLink(requestId: number, sfuUrl: string, createCredentialPresentation: Buffer, linkRootKey: Buffer, adminPasskey: Buffer, callLinkPublicParams: Buffer): void;
|
|
642
646
|
updateCallLink(requestId: number, sfuUrl: string, authCredentialPresentation: Buffer, linkRootKey: Buffer, adminPasskey: Buffer, newName: string | undefined, newRestrictions: number | undefined, newRevoked: boolean | undefined): void;
|
package/dist/ringrtc/Service.js
CHANGED
|
@@ -139,6 +139,8 @@ NativeCallManager.prototype.getAudioOutputs =
|
|
|
139
139
|
Native_1.default.cm_getAudioOutputs;
|
|
140
140
|
NativeCallManager.prototype.setAudioOutput = Native_1.default.cm_setAudioOutput;
|
|
141
141
|
NativeCallManager.prototype.processEvents = Native_1.default.cm_processEvents;
|
|
142
|
+
NativeCallManager.prototype.setRtcStatsInterval =
|
|
143
|
+
Native_1.default.cm_setRtcStatsInterval;
|
|
142
144
|
var PeekStatusCodes;
|
|
143
145
|
(function (PeekStatusCodes) {
|
|
144
146
|
PeekStatusCodes[PeekStatusCodes["EXPIRED_CALL_LINK"] = 703] = "EXPIRED_CALL_LINK";
|
|
@@ -260,6 +262,7 @@ class RingRTCType {
|
|
|
260
262
|
this.handleSendCallMessage = null;
|
|
261
263
|
this.handleSendCallMessageToGroup = null;
|
|
262
264
|
this.handleGroupCallRingUpdate = null;
|
|
265
|
+
this.handleRtcStatsReport = null;
|
|
263
266
|
this.callManager = new NativeCallManager(this);
|
|
264
267
|
this._call = null;
|
|
265
268
|
this._groupCallByClientId = new Map();
|
|
@@ -933,6 +936,12 @@ class RingRTCType {
|
|
|
933
936
|
});
|
|
934
937
|
}
|
|
935
938
|
// Called by Rust
|
|
939
|
+
handleRtcStatsReportComplete(reportJson) {
|
|
940
|
+
if (this.handleRtcStatsReport) {
|
|
941
|
+
this.handleRtcStatsReport(reportJson);
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
// Called by Rust
|
|
936
945
|
onLogMessage(level, fileName, line, message) {
|
|
937
946
|
if (this.handleLogMessage) {
|
|
938
947
|
this.handleLogMessage(level, fileName, line, message);
|
|
@@ -1671,6 +1680,9 @@ class GroupCall {
|
|
|
1671
1680
|
this._observer.onRemoteDeviceStatesChanged(this);
|
|
1672
1681
|
}
|
|
1673
1682
|
}
|
|
1683
|
+
setRtcStatsInterval(intervalMillis) {
|
|
1684
|
+
this._callManager.setRtcStatsInterval(this._clientId, intervalMillis);
|
|
1685
|
+
}
|
|
1674
1686
|
}
|
|
1675
1687
|
exports.GroupCall = GroupCall;
|
|
1676
1688
|
// 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.42.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": "c7ce95993ed4cc77b6b912e052deb4c8671d63e44605c12b576a5872293f687e"
|
|
29
29
|
},
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "AGPL-3.0-only",
|