@signalapp/ringrtc 2.26.0 → 2.26.2
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/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/ringrtc/Service.d.ts +16 -16
- package/dist/ringrtc/Service.js +26 -16
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RingRTCType } from './ringrtc/Service';
|
|
2
|
-
export { AudioDevice, BandwidthMode, Call, CallEndedReason, CallId, CallLogLevel, CallMessageUrgency, CallSettings, CallState, CallingMessage, ConnectionState, DeviceId, GroupCall, GroupCallEndReason, GroupCallObserver, GroupMemberInfo, HangupMessage, HangupType, HttpMethod, JoinState, LocalDeviceState, OfferType, OpaqueMessage, PeekInfo, RemoteDeviceState, RingCancelReason, RingRTCType, RingUpdate, UserId, VideoCapturer, VideoRenderer, VideoRequest, callIdFromEra, callIdFromRingId, } from './ringrtc/Service';
|
|
2
|
+
export { AnswerMessage, AudioDevice, BandwidthMode, BusyMessage, Call, CallEndedReason, CallId, CallLogLevel, CallMessageUrgency, CallSettings, CallState, CallingMessage, ConnectionState, DeviceId, GroupCall, GroupCallEndReason, GroupCallObserver, GroupMemberInfo, HangupMessage, HangupType, HttpMethod, IceCandidateMessage, JoinState, LocalDeviceState, OfferMessage, OfferType, OpaqueMessage, PeekInfo, 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 declare const RingRTC: RingRTCType;
|
package/dist/index.js
CHANGED
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
5
5
|
//
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.RingRTC = 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.PeekInfo = exports.OpaqueMessage = exports.OfferType = exports.LocalDeviceState = exports.JoinState = exports.HttpMethod = exports.HangupType = exports.HangupMessage = exports.GroupMemberInfo = exports.GroupCallEndReason = exports.GroupCall = exports.ConnectionState = exports.CallingMessage = exports.CallState = exports.CallMessageUrgency = exports.CallLogLevel = exports.CallEndedReason = exports.Call = exports.BandwidthMode = void 0;
|
|
7
|
+
exports.RingRTC = 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.PeekInfo = exports.OpaqueMessage = exports.OfferType = exports.OfferMessage = exports.LocalDeviceState = exports.JoinState = exports.IceCandidateMessage = exports.HttpMethod = exports.HangupType = exports.HangupMessage = exports.GroupMemberInfo = exports.GroupCallEndReason = exports.GroupCall = exports.ConnectionState = exports.CallingMessage = exports.CallState = exports.CallMessageUrgency = exports.CallLogLevel = exports.CallEndedReason = exports.Call = exports.BusyMessage = exports.BandwidthMode = exports.AnswerMessage = void 0;
|
|
8
8
|
const Service_1 = require("./ringrtc/Service");
|
|
9
9
|
var Service_2 = require("./ringrtc/Service");
|
|
10
|
+
Object.defineProperty(exports, "AnswerMessage", { enumerable: true, get: function () { return Service_2.AnswerMessage; } });
|
|
10
11
|
Object.defineProperty(exports, "BandwidthMode", { enumerable: true, get: function () { return Service_2.BandwidthMode; } });
|
|
12
|
+
Object.defineProperty(exports, "BusyMessage", { enumerable: true, get: function () { return Service_2.BusyMessage; } });
|
|
11
13
|
Object.defineProperty(exports, "Call", { enumerable: true, get: function () { return Service_2.Call; } });
|
|
12
14
|
Object.defineProperty(exports, "CallEndedReason", { enumerable: true, get: function () { return Service_2.CallEndedReason; } });
|
|
13
15
|
Object.defineProperty(exports, "CallLogLevel", { enumerable: true, get: function () { return Service_2.CallLogLevel; } });
|
|
@@ -21,8 +23,10 @@ Object.defineProperty(exports, "GroupMemberInfo", { enumerable: true, get: funct
|
|
|
21
23
|
Object.defineProperty(exports, "HangupMessage", { enumerable: true, get: function () { return Service_2.HangupMessage; } });
|
|
22
24
|
Object.defineProperty(exports, "HangupType", { enumerable: true, get: function () { return Service_2.HangupType; } });
|
|
23
25
|
Object.defineProperty(exports, "HttpMethod", { enumerable: true, get: function () { return Service_2.HttpMethod; } });
|
|
26
|
+
Object.defineProperty(exports, "IceCandidateMessage", { enumerable: true, get: function () { return Service_2.IceCandidateMessage; } });
|
|
24
27
|
Object.defineProperty(exports, "JoinState", { enumerable: true, get: function () { return Service_2.JoinState; } });
|
|
25
28
|
Object.defineProperty(exports, "LocalDeviceState", { enumerable: true, get: function () { return Service_2.LocalDeviceState; } });
|
|
29
|
+
Object.defineProperty(exports, "OfferMessage", { enumerable: true, get: function () { return Service_2.OfferMessage; } });
|
|
26
30
|
Object.defineProperty(exports, "OfferType", { enumerable: true, get: function () { return Service_2.OfferType; } });
|
|
27
31
|
Object.defineProperty(exports, "OpaqueMessage", { enumerable: true, get: function () { return Service_2.OpaqueMessage; } });
|
|
28
32
|
Object.defineProperty(exports, "PeekInfo", { enumerable: true, get: function () { return Service_2.PeekInfo; } });
|
|
@@ -366,34 +366,34 @@ export declare class CallingMessage {
|
|
|
366
366
|
destinationDeviceId?: DeviceId;
|
|
367
367
|
}
|
|
368
368
|
export declare class OfferMessage {
|
|
369
|
-
callId
|
|
370
|
-
type
|
|
371
|
-
opaque
|
|
372
|
-
|
|
369
|
+
callId: CallId;
|
|
370
|
+
type: OfferType;
|
|
371
|
+
opaque: ProtobufBuffer;
|
|
372
|
+
constructor(callId: CallId, type: OfferType, opaque: ProtobufBuffer);
|
|
373
373
|
}
|
|
374
374
|
export declare enum OfferType {
|
|
375
375
|
AudioCall = 0,
|
|
376
376
|
VideoCall = 1
|
|
377
377
|
}
|
|
378
378
|
export declare class AnswerMessage {
|
|
379
|
-
callId
|
|
380
|
-
opaque
|
|
381
|
-
|
|
379
|
+
callId: CallId;
|
|
380
|
+
opaque: ProtobufBuffer;
|
|
381
|
+
constructor(callId: CallId, opaque: ProtobufBuffer);
|
|
382
382
|
}
|
|
383
383
|
export declare class IceCandidateMessage {
|
|
384
|
-
callId
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
opaque?: ProtobufBuffer;
|
|
388
|
-
sdp?: string;
|
|
384
|
+
callId: CallId;
|
|
385
|
+
opaque: ProtobufBuffer;
|
|
386
|
+
constructor(callId: CallId, opaque: ProtobufBuffer);
|
|
389
387
|
}
|
|
390
388
|
export declare class BusyMessage {
|
|
391
|
-
callId
|
|
389
|
+
callId: CallId;
|
|
390
|
+
constructor(callId: CallId);
|
|
392
391
|
}
|
|
393
392
|
export declare class HangupMessage {
|
|
394
|
-
callId
|
|
395
|
-
type
|
|
396
|
-
deviceId
|
|
393
|
+
callId: CallId;
|
|
394
|
+
type: HangupType;
|
|
395
|
+
deviceId: DeviceId;
|
|
396
|
+
constructor(callId: CallId, type: HangupType, deviceId: DeviceId);
|
|
397
397
|
}
|
|
398
398
|
export declare class OpaqueMessage {
|
|
399
399
|
data?: ProtobufBuffer;
|
package/dist/ringrtc/Service.js
CHANGED
|
@@ -488,18 +488,13 @@ class RingRTCType {
|
|
|
488
488
|
// Called by Rust
|
|
489
489
|
onSendOffer(remoteUserId, remoteDeviceId, callId, broadcast, offerType, opaque) {
|
|
490
490
|
const message = new CallingMessage();
|
|
491
|
-
message.offer = new OfferMessage();
|
|
492
|
-
message.offer.callId = callId;
|
|
493
|
-
message.offer.type = offerType;
|
|
494
|
-
message.offer.opaque = opaque;
|
|
491
|
+
message.offer = new OfferMessage(callId, offerType, opaque);
|
|
495
492
|
this.sendSignaling(remoteUserId, remoteDeviceId, callId, broadcast, message);
|
|
496
493
|
}
|
|
497
494
|
// Called by Rust
|
|
498
495
|
onSendAnswer(remoteUserId, remoteDeviceId, callId, broadcast, opaque) {
|
|
499
496
|
const message = new CallingMessage();
|
|
500
|
-
message.answer = new AnswerMessage();
|
|
501
|
-
message.answer.callId = callId;
|
|
502
|
-
message.answer.opaque = opaque;
|
|
497
|
+
message.answer = new AnswerMessage(callId, opaque);
|
|
503
498
|
this.sendSignaling(remoteUserId, remoteDeviceId, callId, broadcast, message);
|
|
504
499
|
}
|
|
505
500
|
// Called by Rust
|
|
@@ -507,9 +502,7 @@ class RingRTCType {
|
|
|
507
502
|
const message = new CallingMessage();
|
|
508
503
|
message.iceCandidates = [];
|
|
509
504
|
for (const candidate of candidates) {
|
|
510
|
-
const copy = new IceCandidateMessage();
|
|
511
|
-
copy.callId = callId;
|
|
512
|
-
copy.opaque = candidate;
|
|
505
|
+
const copy = new IceCandidateMessage(callId, candidate);
|
|
513
506
|
message.iceCandidates.push(copy);
|
|
514
507
|
}
|
|
515
508
|
this.sendSignaling(remoteUserId, remoteDeviceId, callId, broadcast, message);
|
|
@@ -517,17 +510,13 @@ class RingRTCType {
|
|
|
517
510
|
// Called by Rust
|
|
518
511
|
onSendHangup(remoteUserId, remoteDeviceId, callId, broadcast, hangupType, deviceId) {
|
|
519
512
|
const message = new CallingMessage();
|
|
520
|
-
message.hangup = new HangupMessage();
|
|
521
|
-
message.hangup.callId = callId;
|
|
522
|
-
message.hangup.type = hangupType;
|
|
523
|
-
message.hangup.deviceId = deviceId || 0;
|
|
513
|
+
message.hangup = new HangupMessage(callId, hangupType, deviceId || 0);
|
|
524
514
|
this.sendSignaling(remoteUserId, remoteDeviceId, callId, broadcast, message);
|
|
525
515
|
}
|
|
526
516
|
// Called by Rust
|
|
527
517
|
onSendBusy(remoteUserId, remoteDeviceId, callId, broadcast) {
|
|
528
518
|
const message = new CallingMessage();
|
|
529
|
-
message.busy = new BusyMessage();
|
|
530
|
-
message.busy.callId = callId;
|
|
519
|
+
message.busy = new BusyMessage(callId);
|
|
531
520
|
this.sendSignaling(remoteUserId, remoteDeviceId, callId, broadcast, message);
|
|
532
521
|
}
|
|
533
522
|
sendSignaling(remoteUserId, remoteDeviceId, callId, broadcast, message) {
|
|
@@ -1443,6 +1432,11 @@ class CallingMessage {
|
|
|
1443
1432
|
}
|
|
1444
1433
|
exports.CallingMessage = CallingMessage;
|
|
1445
1434
|
class OfferMessage {
|
|
1435
|
+
constructor(callId, type, opaque) {
|
|
1436
|
+
this.callId = callId;
|
|
1437
|
+
this.type = type;
|
|
1438
|
+
this.opaque = opaque;
|
|
1439
|
+
}
|
|
1446
1440
|
}
|
|
1447
1441
|
exports.OfferMessage = OfferMessage;
|
|
1448
1442
|
var OfferType;
|
|
@@ -1451,15 +1445,31 @@ var OfferType;
|
|
|
1451
1445
|
OfferType[OfferType["VideoCall"] = 1] = "VideoCall";
|
|
1452
1446
|
})(OfferType = exports.OfferType || (exports.OfferType = {}));
|
|
1453
1447
|
class AnswerMessage {
|
|
1448
|
+
constructor(callId, opaque) {
|
|
1449
|
+
this.callId = callId;
|
|
1450
|
+
this.opaque = opaque;
|
|
1451
|
+
}
|
|
1454
1452
|
}
|
|
1455
1453
|
exports.AnswerMessage = AnswerMessage;
|
|
1456
1454
|
class IceCandidateMessage {
|
|
1455
|
+
constructor(callId, opaque) {
|
|
1456
|
+
this.callId = callId;
|
|
1457
|
+
this.opaque = opaque;
|
|
1458
|
+
}
|
|
1457
1459
|
}
|
|
1458
1460
|
exports.IceCandidateMessage = IceCandidateMessage;
|
|
1459
1461
|
class BusyMessage {
|
|
1462
|
+
constructor(callId) {
|
|
1463
|
+
this.callId = callId;
|
|
1464
|
+
}
|
|
1460
1465
|
}
|
|
1461
1466
|
exports.BusyMessage = BusyMessage;
|
|
1462
1467
|
class HangupMessage {
|
|
1468
|
+
constructor(callId, type, deviceId) {
|
|
1469
|
+
this.callId = callId;
|
|
1470
|
+
this.type = type;
|
|
1471
|
+
this.deviceId = deviceId;
|
|
1472
|
+
}
|
|
1463
1473
|
}
|
|
1464
1474
|
exports.HangupMessage = HangupMessage;
|
|
1465
1475
|
class OpaqueMessage {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signalapp/ringrtc",
|
|
3
|
-
"version": "2.26.
|
|
3
|
+
"version": "2.26.2",
|
|
4
4
|
"description": "Signal Messenger voice and video calling library.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"config": {
|
|
25
25
|
"prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
|
|
26
|
-
"prebuildChecksum": "
|
|
26
|
+
"prebuildChecksum": "da18a941541930f29418b67b7091d8508e991ae0cf39e8b9e71580962a0c0aa5"
|
|
27
27
|
},
|
|
28
28
|
"author": "",
|
|
29
29
|
"license": "AGPL-3.0-only",
|