mediasoup 3.20.7 → 3.20.8
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/node/lib/Worker.d.ts +1 -1
- package/node/lib/Worker.d.ts.map +1 -1
- package/node/lib/Worker.js +11 -1
- package/node/lib/WorkerTypes.d.ts +9 -0
- package/node/lib/WorkerTypes.d.ts.map +1 -1
- package/node/lib/fbs/data-consumer/binary.d.ts +25 -0
- package/node/lib/fbs/data-consumer/binary.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/binary.js +110 -0
- package/node/lib/fbs/data-consumer/data.d.ts +10 -0
- package/node/lib/fbs/data-consumer/data.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/data.js +30 -0
- package/node/lib/fbs/data-consumer/string.d.ts +22 -0
- package/node/lib/fbs/data-consumer/string.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-notification.js → data-consumer/string.js} +34 -20
- package/node/lib/fbs/data-producer/binary.d.ts +25 -0
- package/node/lib/fbs/data-producer/binary.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/binary.js +110 -0
- package/node/lib/fbs/data-producer/data.d.ts +10 -0
- package/node/lib/fbs/data-producer/data.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/data.js +30 -0
- package/node/lib/fbs/data-producer/string.d.ts +22 -0
- package/node/lib/fbs/data-producer/string.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/string.js +92 -0
- package/node/lib/fbs/message/type.d.ts +7 -0
- package/node/lib/fbs/message/type.d.ts.map +1 -0
- package/node/lib/fbs/message/type.js +11 -0
- package/node/lib/fbs/message-from-worker/body.d.ts +12 -0
- package/node/lib/fbs/message-from-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker/body.js +34 -0
- package/node/lib/fbs/message-from-worker/message.d.ts +30 -0
- package/node/lib/fbs/message-from-worker/message.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker/message.js +122 -0
- package/node/lib/fbs/message-from-worker.d.ts +3 -0
- package/node/lib/fbs/message-from-worker.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker.js +9 -0
- package/node/lib/fbs/message-to-worker/body.d.ts +10 -0
- package/node/lib/fbs/message-to-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker/body.js +30 -0
- package/node/lib/fbs/message-to-worker/message.d.ts +29 -0
- package/node/lib/fbs/message-to-worker/message.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker/message.js +122 -0
- package/node/lib/fbs/message-to-worker.d.ts +3 -0
- package/node/lib/fbs/message-to-worker.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker.js +9 -0
- package/node/lib/fbs/notification-from-worker/body.d.ts +44 -0
- package/node/lib/fbs/notification-from-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/body.js +98 -0
- package/node/lib/fbs/notification-from-worker/event.d.ts +31 -0
- package/node/lib/fbs/notification-from-worker/event.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/event.js +35 -0
- package/node/lib/fbs/notification-from-worker/notification.d.ts +52 -0
- package/node/lib/fbs/notification-from-worker/notification.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/notification.js +140 -0
- package/node/lib/fbs/notification-from-worker.d.ts +4 -0
- package/node/lib/fbs/notification-from-worker.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker.js +11 -0
- package/node/lib/fbs/notification-to-worker/body.d.ts +12 -0
- package/node/lib/fbs/notification-to-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/body.js +34 -0
- package/node/lib/fbs/notification-to-worker/event.d.ts +6 -0
- package/node/lib/fbs/notification-to-worker/event.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/event.js +10 -0
- package/node/lib/fbs/notification-to-worker/notification.d.ts +36 -0
- package/node/lib/fbs/notification-to-worker/notification.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/notification.js +140 -0
- package/node/lib/fbs/notification-to-worker.d.ts +4 -0
- package/node/lib/fbs/notification-to-worker.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker.js +11 -0
- package/node/lib/fbs/plain-transport/connect-response.d.ts.map +1 -1
- package/node/lib/fbs/plain-transport/connect-response.js +1 -0
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.d.ts.map +1 -1
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.js +5 -5
- package/node/lib/fbs/trace-events/fir-trace-info.d.ts +21 -0
- package/node/lib/fbs/trace-events/fir-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-request.js → trace-events/fir-trace-info.js} +32 -20
- package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts +25 -0
- package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/key-frame-trace-info.js +104 -0
- package/node/lib/fbs/trace-events/pli-trace-info.d.ts +21 -0
- package/node/lib/fbs/trace-events/pli-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-worker-notification.js → trace-events/pli-trace-info.js} +32 -20
- package/node/lib/fbs/trace-events/rtp-trace-info.d.ts +25 -0
- package/node/lib/fbs/trace-events/rtp-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/{consumer/enable-delay-and-loss-request.js → trace-events/rtp-trace-info.js} +35 -33
- package/node/lib/fbs/trace-events/trace-event-type.d.ts +8 -0
- package/node/lib/fbs/trace-events/trace-event-type.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/trace-event-type.js +12 -0
- package/node/lib/fbs/trace-events/trace-info.d.ts +14 -0
- package/node/lib/fbs/trace-events/trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/trace-info.js +38 -0
- package/node/lib/fbs/trace-events.d.ts +7 -0
- package/node/lib/fbs/trace-events.d.ts.map +1 -0
- package/node/lib/fbs/trace-events.js +20 -0
- package/node/lib/fbs/worker/dump-response.d.ts +5 -1
- package/node/lib/fbs/worker/dump-response.d.ts.map +1 -1
- package/node/lib/fbs/worker/dump-response.js +16 -3
- package/node/lib/index.d.ts +1 -1
- package/node/lib/index.d.ts.map +1 -1
- package/node/lib/index.js +2 -1
- package/node/lib/test/test-PlainTransport.js +0 -30
- package/node/lib/test/test-Worker.js +1 -0
- package/package.json +1 -1
- package/worker/src/RTC/SimpleProducerStreamManager.cpp +6 -3
- package/node/lib/fbs/consumer/degrade-request.d.ts +0 -30
- package/node/lib/fbs/consumer/degrade-request.d.ts.map +0 -1
- package/node/lib/fbs/consumer/degrade-request.js +0 -124
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts +0 -24
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts.map +0 -1
- package/node/lib/fbs/producer/degrade-request.d.ts +0 -30
- package/node/lib/fbs/producer/degrade-request.d.ts.map +0 -1
- package/node/lib/fbs/producer/degrade-request.js +0 -124
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts +0 -24
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts.map +0 -1
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.js +0 -102
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts +0 -24
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts.map +0 -1
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.js +0 -102
- package/node/lib/fbs/worker/close-notification.d.ts +0 -18
- package/node/lib/fbs/worker/close-notification.d.ts.map +0 -1
- package/node/lib/fbs/worker/close-request.d.ts +0 -18
- package/node/lib/fbs/worker/close-request.d.ts.map +0 -1
- package/node/lib/fbs/worker/close-worker-notification.d.ts +0 -18
- package/node/lib/fbs/worker/close-worker-notification.d.ts.map +0 -1
package/node/lib/fbs/{consumer/enable-delay-and-loss-request.js → trace-events/rtp-trace-info.js}
RENAMED
|
@@ -34,10 +34,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
38
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
37
|
+
exports.RtpTraceInfoT = exports.RtpTraceInfo = void 0;
|
|
39
38
|
const flatbuffers = __importStar(require("flatbuffers"));
|
|
40
|
-
|
|
39
|
+
const dump_1 = require("../../fbs/rtp-packet/dump");
|
|
40
|
+
class RtpTraceInfo {
|
|
41
41
|
bb = null;
|
|
42
42
|
bb_pos = 0;
|
|
43
43
|
__init(i, bb) {
|
|
@@ -45,58 +45,60 @@ class EnableDelayAndLossRequest {
|
|
|
45
45
|
this.bb = bb;
|
|
46
46
|
return this;
|
|
47
47
|
}
|
|
48
|
-
static
|
|
49
|
-
return (obj || new
|
|
48
|
+
static getRootAsRtpTraceInfo(bb, obj) {
|
|
49
|
+
return (obj || new RtpTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
50
50
|
}
|
|
51
|
-
static
|
|
51
|
+
static getSizePrefixedRootAsRtpTraceInfo(bb, obj) {
|
|
52
52
|
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
53
|
-
return (obj || new
|
|
53
|
+
return (obj || new RtpTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
rtpPacket(obj) {
|
|
56
56
|
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
57
|
-
return offset ?
|
|
57
|
+
return offset ? (obj || new dump_1.Dump()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
isRtx() {
|
|
60
60
|
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
61
61
|
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
62
62
|
}
|
|
63
|
-
static
|
|
63
|
+
static startRtpTraceInfo(builder) {
|
|
64
64
|
builder.startObject(2);
|
|
65
65
|
}
|
|
66
|
-
static
|
|
67
|
-
builder.
|
|
66
|
+
static addRtpPacket(builder, rtpPacketOffset) {
|
|
67
|
+
builder.addFieldOffset(0, rtpPacketOffset, 0);
|
|
68
68
|
}
|
|
69
|
-
static
|
|
70
|
-
builder.addFieldInt8(1, +
|
|
69
|
+
static addIsRtx(builder, isRtx) {
|
|
70
|
+
builder.addFieldInt8(1, +isRtx, +false);
|
|
71
71
|
}
|
|
72
|
-
static
|
|
72
|
+
static endRtpTraceInfo(builder) {
|
|
73
73
|
const offset = builder.endObject();
|
|
74
|
+
builder.requiredField(offset, 4); // rtp_packet
|
|
74
75
|
return offset;
|
|
75
76
|
}
|
|
76
|
-
static
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return
|
|
77
|
+
static createRtpTraceInfo(builder, rtpPacketOffset, isRtx) {
|
|
78
|
+
RtpTraceInfo.startRtpTraceInfo(builder);
|
|
79
|
+
RtpTraceInfo.addRtpPacket(builder, rtpPacketOffset);
|
|
80
|
+
RtpTraceInfo.addIsRtx(builder, isRtx);
|
|
81
|
+
return RtpTraceInfo.endRtpTraceInfo(builder);
|
|
81
82
|
}
|
|
82
83
|
unpack() {
|
|
83
|
-
return new
|
|
84
|
+
return new RtpTraceInfoT((this.rtpPacket() !== null ? this.rtpPacket().unpack() : null), this.isRtx());
|
|
84
85
|
}
|
|
85
86
|
unpackTo(_o) {
|
|
86
|
-
_o.
|
|
87
|
-
_o.
|
|
87
|
+
_o.rtpPacket = (this.rtpPacket() !== null ? this.rtpPacket().unpack() : null);
|
|
88
|
+
_o.isRtx = this.isRtx();
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
|
-
exports.
|
|
91
|
-
class
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
constructor(
|
|
95
|
-
this.
|
|
96
|
-
this.
|
|
91
|
+
exports.RtpTraceInfo = RtpTraceInfo;
|
|
92
|
+
class RtpTraceInfoT {
|
|
93
|
+
rtpPacket;
|
|
94
|
+
isRtx;
|
|
95
|
+
constructor(rtpPacket = null, isRtx = false) {
|
|
96
|
+
this.rtpPacket = rtpPacket;
|
|
97
|
+
this.isRtx = isRtx;
|
|
97
98
|
}
|
|
98
99
|
pack(builder) {
|
|
99
|
-
|
|
100
|
+
const rtpPacket = (this.rtpPacket !== null ? this.rtpPacket.pack(builder) : 0);
|
|
101
|
+
return RtpTraceInfo.createRtpTraceInfo(builder, rtpPacket, this.isRtx);
|
|
100
102
|
}
|
|
101
103
|
}
|
|
102
|
-
exports.
|
|
104
|
+
exports.RtpTraceInfoT = RtpTraceInfoT;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace-event-type.d.ts","sourceRoot":"","sources":["../../../src/fbs/trace-events/trace-event-type.ts"],"names":[],"mappings":"AAEA,oBAAY,cAAc;IACxB,QAAQ,IAAI;IACZ,GAAG,IAAI;IACP,IAAI,IAAI;IACR,GAAG,IAAI;IACP,GAAG,IAAI;CACR"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TraceEventType = void 0;
|
|
5
|
+
var TraceEventType;
|
|
6
|
+
(function (TraceEventType) {
|
|
7
|
+
TraceEventType[TraceEventType["KEYFRAME"] = 0] = "KEYFRAME";
|
|
8
|
+
TraceEventType[TraceEventType["FIR"] = 1] = "FIR";
|
|
9
|
+
TraceEventType[TraceEventType["NACK"] = 2] = "NACK";
|
|
10
|
+
TraceEventType[TraceEventType["PLI"] = 3] = "PLI";
|
|
11
|
+
TraceEventType[TraceEventType["RTP"] = 4] = "RTP";
|
|
12
|
+
})(TraceEventType || (exports.TraceEventType = TraceEventType = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FirTraceInfo } from '../../fbs/trace-events/fir-trace-info';
|
|
2
|
+
import { KeyFrameTraceInfo } from '../../fbs/trace-events/key-frame-trace-info';
|
|
3
|
+
import { PliTraceInfo } from '../../fbs/trace-events/pli-trace-info';
|
|
4
|
+
import { RtpTraceInfo } from '../../fbs/trace-events/rtp-trace-info';
|
|
5
|
+
export declare enum TraceInfo {
|
|
6
|
+
NONE = 0,
|
|
7
|
+
KeyFrameTraceInfo = 1,
|
|
8
|
+
FirTraceInfo = 2,
|
|
9
|
+
PliTraceInfo = 3,
|
|
10
|
+
RtpTraceInfo = 4
|
|
11
|
+
}
|
|
12
|
+
export declare function unionToTraceInfo(type: TraceInfo, accessor: (obj: FirTraceInfo | KeyFrameTraceInfo | PliTraceInfo | RtpTraceInfo) => FirTraceInfo | KeyFrameTraceInfo | PliTraceInfo | RtpTraceInfo | null): FirTraceInfo | KeyFrameTraceInfo | PliTraceInfo | RtpTraceInfo | null;
|
|
13
|
+
export declare function unionListToTraceInfo(type: TraceInfo, accessor: (index: number, obj: FirTraceInfo | KeyFrameTraceInfo | PliTraceInfo | RtpTraceInfo) => FirTraceInfo | KeyFrameTraceInfo | PliTraceInfo | RtpTraceInfo | null, index: number): FirTraceInfo | KeyFrameTraceInfo | PliTraceInfo | RtpTraceInfo | null;
|
|
14
|
+
//# sourceMappingURL=trace-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace-info.d.ts","sourceRoot":"","sources":["../../../src/fbs/trace-events/trace-info.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAiB,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAsB,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAE,YAAY,EAAiB,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,YAAY,EAAiB,MAAM,uCAAuC,CAAC;AAGpF,oBAAY,SAAS;IACnB,IAAI,IAAI;IACR,iBAAiB,IAAI;IACrB,YAAY,IAAI;IAChB,YAAY,IAAI;IAChB,YAAY,IAAI;CACjB;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,CAAC,GAAG,EAAC,YAAY,GAAC,iBAAiB,GAAC,YAAY,GAAC,YAAY,KAAK,YAAY,GAAC,iBAAiB,GAAC,YAAY,GAAC,YAAY,GAAC,IAAI,GACxI,YAAY,GAAC,iBAAiB,GAAC,YAAY,GAAC,YAAY,GAAC,IAAI,CAS/D;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,YAAY,GAAC,iBAAiB,GAAC,YAAY,GAAC,YAAY,KAAK,YAAY,GAAC,iBAAiB,GAAC,YAAY,GAAC,YAAY,GAAC,IAAI,EACxJ,KAAK,EAAE,MAAM,GACZ,YAAY,GAAC,iBAAiB,GAAC,YAAY,GAAC,YAAY,GAAC,IAAI,CAS/D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TraceInfo = void 0;
|
|
5
|
+
exports.unionToTraceInfo = unionToTraceInfo;
|
|
6
|
+
exports.unionListToTraceInfo = unionListToTraceInfo;
|
|
7
|
+
const fir_trace_info_1 = require("../../fbs/trace-events/fir-trace-info");
|
|
8
|
+
const key_frame_trace_info_1 = require("../../fbs/trace-events/key-frame-trace-info");
|
|
9
|
+
const pli_trace_info_1 = require("../../fbs/trace-events/pli-trace-info");
|
|
10
|
+
const rtp_trace_info_1 = require("../../fbs/trace-events/rtp-trace-info");
|
|
11
|
+
var TraceInfo;
|
|
12
|
+
(function (TraceInfo) {
|
|
13
|
+
TraceInfo[TraceInfo["NONE"] = 0] = "NONE";
|
|
14
|
+
TraceInfo[TraceInfo["KeyFrameTraceInfo"] = 1] = "KeyFrameTraceInfo";
|
|
15
|
+
TraceInfo[TraceInfo["FirTraceInfo"] = 2] = "FirTraceInfo";
|
|
16
|
+
TraceInfo[TraceInfo["PliTraceInfo"] = 3] = "PliTraceInfo";
|
|
17
|
+
TraceInfo[TraceInfo["RtpTraceInfo"] = 4] = "RtpTraceInfo";
|
|
18
|
+
})(TraceInfo || (exports.TraceInfo = TraceInfo = {}));
|
|
19
|
+
function unionToTraceInfo(type, accessor) {
|
|
20
|
+
switch (TraceInfo[type]) {
|
|
21
|
+
case 'NONE': return null;
|
|
22
|
+
case 'KeyFrameTraceInfo': return accessor(new key_frame_trace_info_1.KeyFrameTraceInfo());
|
|
23
|
+
case 'FirTraceInfo': return accessor(new fir_trace_info_1.FirTraceInfo());
|
|
24
|
+
case 'PliTraceInfo': return accessor(new pli_trace_info_1.PliTraceInfo());
|
|
25
|
+
case 'RtpTraceInfo': return accessor(new rtp_trace_info_1.RtpTraceInfo());
|
|
26
|
+
default: return null;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function unionListToTraceInfo(type, accessor, index) {
|
|
30
|
+
switch (TraceInfo[type]) {
|
|
31
|
+
case 'NONE': return null;
|
|
32
|
+
case 'KeyFrameTraceInfo': return accessor(index, new key_frame_trace_info_1.KeyFrameTraceInfo());
|
|
33
|
+
case 'FirTraceInfo': return accessor(index, new fir_trace_info_1.FirTraceInfo());
|
|
34
|
+
case 'PliTraceInfo': return accessor(index, new pli_trace_info_1.PliTraceInfo());
|
|
35
|
+
case 'RtpTraceInfo': return accessor(index, new rtp_trace_info_1.RtpTraceInfo());
|
|
36
|
+
default: return null;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { FirTraceInfo, FirTraceInfoT } from './trace-events/fir-trace-info';
|
|
2
|
+
export { KeyFrameTraceInfo, KeyFrameTraceInfoT } from './trace-events/key-frame-trace-info';
|
|
3
|
+
export { PliTraceInfo, PliTraceInfoT } from './trace-events/pli-trace-info';
|
|
4
|
+
export { RtpTraceInfo, RtpTraceInfoT } from './trace-events/rtp-trace-info';
|
|
5
|
+
export { TraceEventType } from './trace-events/trace-event-type';
|
|
6
|
+
export { TraceInfo } from './trace-events/trace-info';
|
|
7
|
+
//# sourceMappingURL=trace-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trace-events.d.ts","sourceRoot":"","sources":["../../src/fbs/trace-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TraceInfo = exports.TraceEventType = exports.RtpTraceInfoT = exports.RtpTraceInfo = exports.PliTraceInfoT = exports.PliTraceInfo = exports.KeyFrameTraceInfoT = exports.KeyFrameTraceInfo = exports.FirTraceInfoT = exports.FirTraceInfo = void 0;
|
|
5
|
+
var fir_trace_info_1 = require("./trace-events/fir-trace-info");
|
|
6
|
+
Object.defineProperty(exports, "FirTraceInfo", { enumerable: true, get: function () { return fir_trace_info_1.FirTraceInfo; } });
|
|
7
|
+
Object.defineProperty(exports, "FirTraceInfoT", { enumerable: true, get: function () { return fir_trace_info_1.FirTraceInfoT; } });
|
|
8
|
+
var key_frame_trace_info_1 = require("./trace-events/key-frame-trace-info");
|
|
9
|
+
Object.defineProperty(exports, "KeyFrameTraceInfo", { enumerable: true, get: function () { return key_frame_trace_info_1.KeyFrameTraceInfo; } });
|
|
10
|
+
Object.defineProperty(exports, "KeyFrameTraceInfoT", { enumerable: true, get: function () { return key_frame_trace_info_1.KeyFrameTraceInfoT; } });
|
|
11
|
+
var pli_trace_info_1 = require("./trace-events/pli-trace-info");
|
|
12
|
+
Object.defineProperty(exports, "PliTraceInfo", { enumerable: true, get: function () { return pli_trace_info_1.PliTraceInfo; } });
|
|
13
|
+
Object.defineProperty(exports, "PliTraceInfoT", { enumerable: true, get: function () { return pli_trace_info_1.PliTraceInfoT; } });
|
|
14
|
+
var rtp_trace_info_1 = require("./trace-events/rtp-trace-info");
|
|
15
|
+
Object.defineProperty(exports, "RtpTraceInfo", { enumerable: true, get: function () { return rtp_trace_info_1.RtpTraceInfo; } });
|
|
16
|
+
Object.defineProperty(exports, "RtpTraceInfoT", { enumerable: true, get: function () { return rtp_trace_info_1.RtpTraceInfoT; } });
|
|
17
|
+
var trace_event_type_1 = require("./trace-events/trace-event-type");
|
|
18
|
+
Object.defineProperty(exports, "TraceEventType", { enumerable: true, get: function () { return trace_event_type_1.TraceEventType; } });
|
|
19
|
+
var trace_info_1 = require("./trace-events/trace-info");
|
|
20
|
+
Object.defineProperty(exports, "TraceInfo", { enumerable: true, get: function () { return trace_info_1.TraceInfo; } });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
import { Dump, DumpT } from '../../fbs/lib-uring/dump';
|
|
2
3
|
import { ChannelMessageHandlers, ChannelMessageHandlersT } from '../../fbs/worker/channel-message-handlers';
|
|
3
4
|
export declare class DumpResponse implements flatbuffers.IUnpackableObject<DumpResponseT> {
|
|
4
5
|
bb: flatbuffers.ByteBuffer | null;
|
|
@@ -14,6 +15,7 @@ export declare class DumpResponse implements flatbuffers.IUnpackableObject<DumpR
|
|
|
14
15
|
routerIds(index: number, optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
|
|
15
16
|
routerIdsLength(): number;
|
|
16
17
|
channelMessageHandlers(obj?: ChannelMessageHandlers): ChannelMessageHandlers | null;
|
|
18
|
+
liburing(obj?: Dump): Dump | null;
|
|
17
19
|
static startDumpResponse(builder: flatbuffers.Builder): void;
|
|
18
20
|
static addPid(builder: flatbuffers.Builder, pid: number): void;
|
|
19
21
|
static addWebRtcServerIds(builder: flatbuffers.Builder, webRtcServerIdsOffset: flatbuffers.Offset): void;
|
|
@@ -23,6 +25,7 @@ export declare class DumpResponse implements flatbuffers.IUnpackableObject<DumpR
|
|
|
23
25
|
static createRouterIdsVector(builder: flatbuffers.Builder, data: flatbuffers.Offset[]): flatbuffers.Offset;
|
|
24
26
|
static startRouterIdsVector(builder: flatbuffers.Builder, numElems: number): void;
|
|
25
27
|
static addChannelMessageHandlers(builder: flatbuffers.Builder, channelMessageHandlersOffset: flatbuffers.Offset): void;
|
|
28
|
+
static addLiburing(builder: flatbuffers.Builder, liburingOffset: flatbuffers.Offset): void;
|
|
26
29
|
static endDumpResponse(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
27
30
|
unpack(): DumpResponseT;
|
|
28
31
|
unpackTo(_o: DumpResponseT): void;
|
|
@@ -32,7 +35,8 @@ export declare class DumpResponseT implements flatbuffers.IGeneratedObject {
|
|
|
32
35
|
webRtcServerIds: (string)[];
|
|
33
36
|
routerIds: (string)[];
|
|
34
37
|
channelMessageHandlers: ChannelMessageHandlersT | null;
|
|
35
|
-
|
|
38
|
+
liburing: DumpT | null;
|
|
39
|
+
constructor(pid?: number, webRtcServerIds?: (string)[], routerIds?: (string)[], channelMessageHandlers?: ChannelMessageHandlersT | null, liburing?: DumpT | null);
|
|
36
40
|
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
37
41
|
}
|
|
38
42
|
//# sourceMappingURL=dump-response.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dump-response.d.ts","sourceRoot":"","sources":["../../../src/fbs/worker/dump-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,W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pResponseT = exports.DumpResponse = void 0;
|
|
38
38
|
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
39
39
|
const flatbuffers = __importStar(require("flatbuffers"));
|
|
40
|
+
const dump_1 = require("../../fbs/lib-uring/dump");
|
|
40
41
|
const channel_message_handlers_1 = require("../../fbs/worker/channel-message-handlers");
|
|
41
42
|
class DumpResponse {
|
|
42
43
|
bb = null;
|
|
@@ -77,8 +78,12 @@ class DumpResponse {
|
|
|
77
78
|
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
78
79
|
return offset ? (obj || new channel_message_handlers_1.ChannelMessageHandlers()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
79
80
|
}
|
|
81
|
+
liburing(obj) {
|
|
82
|
+
const offset = this.bb.__offset(this.bb_pos, 12);
|
|
83
|
+
return offset ? (obj || new dump_1.Dump()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
84
|
+
}
|
|
80
85
|
static startDumpResponse(builder) {
|
|
81
|
-
builder.startObject(
|
|
86
|
+
builder.startObject(5);
|
|
82
87
|
}
|
|
83
88
|
static addPid(builder, pid) {
|
|
84
89
|
builder.addFieldInt32(0, pid, 0);
|
|
@@ -112,6 +117,9 @@ class DumpResponse {
|
|
|
112
117
|
static addChannelMessageHandlers(builder, channelMessageHandlersOffset) {
|
|
113
118
|
builder.addFieldOffset(3, channelMessageHandlersOffset, 0);
|
|
114
119
|
}
|
|
120
|
+
static addLiburing(builder, liburingOffset) {
|
|
121
|
+
builder.addFieldOffset(4, liburingOffset, 0);
|
|
122
|
+
}
|
|
115
123
|
static endDumpResponse(builder) {
|
|
116
124
|
const offset = builder.endObject();
|
|
117
125
|
builder.requiredField(offset, 6); // web_rtc_server_ids
|
|
@@ -120,13 +128,14 @@ class DumpResponse {
|
|
|
120
128
|
return offset;
|
|
121
129
|
}
|
|
122
130
|
unpack() {
|
|
123
|
-
return new DumpResponseT(this.pid(), this.bb.createScalarList(this.webRtcServerIds.bind(this), this.webRtcServerIdsLength()), this.bb.createScalarList(this.routerIds.bind(this), this.routerIdsLength()), (this.channelMessageHandlers() !== null ? this.channelMessageHandlers().unpack() : null));
|
|
131
|
+
return new DumpResponseT(this.pid(), this.bb.createScalarList(this.webRtcServerIds.bind(this), this.webRtcServerIdsLength()), this.bb.createScalarList(this.routerIds.bind(this), this.routerIdsLength()), (this.channelMessageHandlers() !== null ? this.channelMessageHandlers().unpack() : null), (this.liburing() !== null ? this.liburing().unpack() : null));
|
|
124
132
|
}
|
|
125
133
|
unpackTo(_o) {
|
|
126
134
|
_o.pid = this.pid();
|
|
127
135
|
_o.webRtcServerIds = this.bb.createScalarList(this.webRtcServerIds.bind(this), this.webRtcServerIdsLength());
|
|
128
136
|
_o.routerIds = this.bb.createScalarList(this.routerIds.bind(this), this.routerIdsLength());
|
|
129
137
|
_o.channelMessageHandlers = (this.channelMessageHandlers() !== null ? this.channelMessageHandlers().unpack() : null);
|
|
138
|
+
_o.liburing = (this.liburing() !== null ? this.liburing().unpack() : null);
|
|
130
139
|
}
|
|
131
140
|
}
|
|
132
141
|
exports.DumpResponse = DumpResponse;
|
|
@@ -135,21 +144,25 @@ class DumpResponseT {
|
|
|
135
144
|
webRtcServerIds;
|
|
136
145
|
routerIds;
|
|
137
146
|
channelMessageHandlers;
|
|
138
|
-
|
|
147
|
+
liburing;
|
|
148
|
+
constructor(pid = 0, webRtcServerIds = [], routerIds = [], channelMessageHandlers = null, liburing = null) {
|
|
139
149
|
this.pid = pid;
|
|
140
150
|
this.webRtcServerIds = webRtcServerIds;
|
|
141
151
|
this.routerIds = routerIds;
|
|
142
152
|
this.channelMessageHandlers = channelMessageHandlers;
|
|
153
|
+
this.liburing = liburing;
|
|
143
154
|
}
|
|
144
155
|
pack(builder) {
|
|
145
156
|
const webRtcServerIds = DumpResponse.createWebRtcServerIdsVector(builder, builder.createObjectOffsetList(this.webRtcServerIds));
|
|
146
157
|
const routerIds = DumpResponse.createRouterIdsVector(builder, builder.createObjectOffsetList(this.routerIds));
|
|
147
158
|
const channelMessageHandlers = (this.channelMessageHandlers !== null ? this.channelMessageHandlers.pack(builder) : 0);
|
|
159
|
+
const liburing = (this.liburing !== null ? this.liburing.pack(builder) : 0);
|
|
148
160
|
DumpResponse.startDumpResponse(builder);
|
|
149
161
|
DumpResponse.addPid(builder, this.pid);
|
|
150
162
|
DumpResponse.addWebRtcServerIds(builder, webRtcServerIds);
|
|
151
163
|
DumpResponse.addRouterIds(builder, routerIds);
|
|
152
164
|
DumpResponse.addChannelMessageHandlers(builder, channelMessageHandlers);
|
|
165
|
+
DumpResponse.addLiburing(builder, liburing);
|
|
153
166
|
return DumpResponse.endDumpResponse(builder);
|
|
154
167
|
}
|
|
155
168
|
}
|
package/node/lib/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare function setLogEventListeners(listeners?: LogEventListeners): voi
|
|
|
44
44
|
/**
|
|
45
45
|
* Create a Worker.
|
|
46
46
|
*/
|
|
47
|
-
export declare function createWorker<WorkerAppData extends AppData = AppData>({ logLevel, logTags, rtcMinPort, rtcMaxPort, dtlsCertificateFile, dtlsPrivateKeyFile, workerBin, libwebrtcFieldTrials, appData, }?: WorkerSettings<WorkerAppData>): Promise<Worker<WorkerAppData>>;
|
|
47
|
+
export declare function createWorker<WorkerAppData extends AppData = AppData>({ logLevel, logTags, rtcMinPort, rtcMaxPort, dtlsCertificateFile, dtlsPrivateKeyFile, workerBin, libwebrtcFieldTrials, disableLiburing, appData, }?: WorkerSettings<WorkerAppData>): Promise<Worker<WorkerAppData>>;
|
|
48
48
|
/**
|
|
49
49
|
* Get a cloned copy of the mediasoup supported RTP capabilities.
|
|
50
50
|
*/
|
package/node/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,QAAQ,EAER,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KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC;;GAEG;AAEH,eAAO,MAAM,OAAO,EAAE,MAA8C,CAAC;AAErE,QAAA,MAAM,QAAQ,EAAE,QAAqD,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB;;GAEG;AACH,OAAO,EAAE,gBAAgB,IAAI,SAAS,EAAE,MAAM,UAAU,CAAC;AAIzD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,CA0BxE;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,aAAa,SAAS,OAAO,GAAG,OAAO,EAAE,EAC3E,QAAkB,EAClB,OAAO,EACP,UAAkB,EAClB,UAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAElB,SAAS,EACT,oBAAoB,EACpB,eAAuB,EACvB,OAAO,GACP,GAAE,cAAc,CAAC,aAAa,CAAM,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CA8BrE;AAED;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,qBAAqB,CAEnE;AAED;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAE/B;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
|
package/node/lib/index.js
CHANGED
|
@@ -101,7 +101,7 @@ function setLogEventListeners(listeners) {
|
|
|
101
101
|
*/
|
|
102
102
|
async function createWorker({ logLevel = 'error', logTags, rtcMinPort = 10000, rtcMaxPort = 59999, dtlsCertificateFile, dtlsPrivateKeyFile,
|
|
103
103
|
// eslint-disable-next-line no-shadow
|
|
104
|
-
workerBin, libwebrtcFieldTrials, appData, } = {}) {
|
|
104
|
+
workerBin, libwebrtcFieldTrials, disableLiburing = false, appData, } = {}) {
|
|
105
105
|
logger.debug('createWorker()');
|
|
106
106
|
if (appData && typeof appData !== 'object') {
|
|
107
107
|
throw new TypeError('if given, appData must be an object');
|
|
@@ -115,6 +115,7 @@ workerBin, libwebrtcFieldTrials, appData, } = {}) {
|
|
|
115
115
|
dtlsPrivateKeyFile,
|
|
116
116
|
workerBin,
|
|
117
117
|
libwebrtcFieldTrials,
|
|
118
|
+
disableLiburing,
|
|
118
119
|
appData,
|
|
119
120
|
});
|
|
120
121
|
return new Promise((resolve, reject) => {
|
|
@@ -288,36 +288,6 @@ test('router.createPlainTransport() with enableSrtp succeeds', async () => {
|
|
|
288
288
|
expect(plainTransport.srtpParameters?.cryptoSuite).toBe('AEAD_AES_256_GCM');
|
|
289
289
|
expect(plainTransport.srtpParameters?.keyBase64.length).toBe(60);
|
|
290
290
|
}, 2000);
|
|
291
|
-
test('plainTransport.connect() with srtpParameters and comedia enabled succeeds', async () => {
|
|
292
|
-
// In comedia mode the remote endpoint is not known until the first packet is
|
|
293
|
-
// received, so the worker's connect response carries no tuple. `connect()`
|
|
294
|
-
// (called with just `srtpParameters`, as documented for comedia + SRTP) must
|
|
295
|
-
// still succeed.
|
|
296
|
-
const plainTransport = await ctx.router.createPlainTransport({
|
|
297
|
-
listenInfo: { protocol: 'udp', ip: '127.0.0.1' },
|
|
298
|
-
enableSrtp: true,
|
|
299
|
-
comedia: true,
|
|
300
|
-
});
|
|
301
|
-
// Default cryptoSuite: 'AES_CM_128_HMAC_SHA1_80'.
|
|
302
|
-
expect(plainTransport.srtpParameters?.cryptoSuite).toBe('AES_CM_128_HMAC_SHA1_80');
|
|
303
|
-
expect(plainTransport.srtpParameters?.keyBase64.length).toBe(40);
|
|
304
|
-
// The tuple only carries local information until comedia latches a remote.
|
|
305
|
-
expect(plainTransport.tuple.localAddress).toBe('127.0.0.1');
|
|
306
|
-
expect(plainTransport.tuple.protocol).toBe('udp');
|
|
307
|
-
expect(plainTransport.tuple.remoteIp).toBeUndefined();
|
|
308
|
-
// Valid srtpParameters. And no need for ip and port since comedia is enabled.
|
|
309
|
-
await expect(plainTransport.connect({
|
|
310
|
-
srtpParameters: {
|
|
311
|
-
cryptoSuite: 'AEAD_AES_256_GCM',
|
|
312
|
-
keyBase64: 'YTdjcDBvY2JoMGY5YXNlNDc0eDJsdGgwaWRvNnJsamRrdG16aWVpZHphdHo=',
|
|
313
|
-
},
|
|
314
|
-
})).resolves.toBeUndefined();
|
|
315
|
-
// The remote SRTP crypto suite has been applied.
|
|
316
|
-
expect(plainTransport.srtpParameters?.cryptoSuite).toBe('AEAD_AES_256_GCM');
|
|
317
|
-
expect(plainTransport.srtpParameters?.keyBase64.length).toBe(60);
|
|
318
|
-
// The tuple is still local only. Comedia will latch the remote later.
|
|
319
|
-
expect(plainTransport.tuple.remoteIp).toBeUndefined();
|
|
320
|
-
}, 2000);
|
|
321
291
|
test('router.createPlainTransport() with non bindable IP rejects with Error', async () => {
|
|
322
292
|
await expect(ctx.router.createPlainTransport({ listenIp: '8.8.8.8' })).rejects.toThrow(Error);
|
|
323
293
|
}, 2000);
|
|
@@ -71,6 +71,7 @@ test('mediasoup.createWorker() succeeds', async () => {
|
|
|
71
71
|
dtlsCertificateFile: path.join(__dirname, 'data', 'dtls-cert.pem'),
|
|
72
72
|
dtlsPrivateKeyFile: path.join(__dirname, 'data', 'dtls-key.pem'),
|
|
73
73
|
libwebrtcFieldTrials: 'WebRTC-Bwe-AlrLimitedBackoff/Disabled/',
|
|
74
|
+
disableLiburing: true,
|
|
74
75
|
appData: { foo: 456 },
|
|
75
76
|
});
|
|
76
77
|
expect(worker2.constructor.name).toBe('WorkerImpl');
|
package/package.json
CHANGED
|
@@ -97,7 +97,6 @@ namespace RTC
|
|
|
97
97
|
|
|
98
98
|
MS_ASSERT(this->externallyManagedBitrate, "bitrate is not externally managed");
|
|
99
99
|
MS_ASSERT(this->kind == RTC::Media::Kind::VIDEO, "should be video");
|
|
100
|
-
MS_ASSERT(IsActive(), "should be active");
|
|
101
100
|
|
|
102
101
|
// If this is not the first time this method is called within the same
|
|
103
102
|
// iteration, return 0 since a video Simple consumer does not keep state
|
|
@@ -109,7 +108,12 @@ namespace RTC
|
|
|
109
108
|
|
|
110
109
|
this->managingBitrate = true;
|
|
111
110
|
|
|
112
|
-
if
|
|
111
|
+
// Do nothing if the producer stream is not active. NOTE: This may happen
|
|
112
|
+
// because Consumer::GetBitratePriority() does not account for the producer
|
|
113
|
+
// stream presence/score, so the Transport may still ask us to increase.
|
|
114
|
+
if (
|
|
115
|
+
!this->producerRtpStream || (this->producerRtpStream->GetScore() == 0u &&
|
|
116
|
+
this->producerRtpStream->HasRtpInactivityCheckEnabled()))
|
|
113
117
|
{
|
|
114
118
|
return 0u;
|
|
115
119
|
}
|
|
@@ -134,7 +138,6 @@ namespace RTC
|
|
|
134
138
|
|
|
135
139
|
MS_ASSERT(this->externallyManagedBitrate, "bitrate is not externally managed");
|
|
136
140
|
MS_ASSERT(this->kind == RTC::Media::Kind::VIDEO, "should be video");
|
|
137
|
-
MS_ASSERT(IsActive(), "should be active");
|
|
138
141
|
|
|
139
142
|
this->managingBitrate = false;
|
|
140
143
|
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as flatbuffers from 'flatbuffers';
|
|
2
|
-
export declare class DegradeRequest implements flatbuffers.IUnpackableObject<DegradeRequestT> {
|
|
3
|
-
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
-
bb_pos: number;
|
|
5
|
-
__init(i: number, bb: flatbuffers.ByteBuffer): DegradeRequest;
|
|
6
|
-
static getRootAsDegradeRequest(bb: flatbuffers.ByteBuffer, obj?: DegradeRequest): DegradeRequest;
|
|
7
|
-
static getSizePrefixedRootAsDegradeRequest(bb: flatbuffers.ByteBuffer, obj?: DegradeRequest): DegradeRequest;
|
|
8
|
-
durationMs(): number;
|
|
9
|
-
maxDelayMs(): number;
|
|
10
|
-
delayPercent(): number;
|
|
11
|
-
lossPercent(): number;
|
|
12
|
-
static startDegradeRequest(builder: flatbuffers.Builder): void;
|
|
13
|
-
static addDurationMs(builder: flatbuffers.Builder, durationMs: number): void;
|
|
14
|
-
static addMaxDelayMs(builder: flatbuffers.Builder, maxDelayMs: number): void;
|
|
15
|
-
static addDelayPercent(builder: flatbuffers.Builder, delayPercent: number): void;
|
|
16
|
-
static addLossPercent(builder: flatbuffers.Builder, lossPercent: number): void;
|
|
17
|
-
static endDegradeRequest(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
18
|
-
static createDegradeRequest(builder: flatbuffers.Builder, durationMs: number, maxDelayMs: number, delayPercent: number, lossPercent: number): flatbuffers.Offset;
|
|
19
|
-
unpack(): DegradeRequestT;
|
|
20
|
-
unpackTo(_o: DegradeRequestT): void;
|
|
21
|
-
}
|
|
22
|
-
export declare class DegradeRequestT implements flatbuffers.IGeneratedObject {
|
|
23
|
-
durationMs: number;
|
|
24
|
-
maxDelayMs: number;
|
|
25
|
-
delayPercent: number;
|
|
26
|
-
lossPercent: number;
|
|
27
|
-
constructor(durationMs?: number, maxDelayMs?: number, delayPercent?: number, lossPercent?: number);
|
|
28
|
-
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=degrade-request.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"degrade-request.d.ts","sourceRoot":"","sources":["../../../src/fbs/consumer/degrade-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,cAAe,YAAW,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC;IACnF,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,cAAc;IAM5D,MAAM,CAAC,uBAAuB,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,cAAc,GAAE,cAAc;IAI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,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.DegradeRequestT = exports.DegradeRequest = void 0;
|
|
38
|
-
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
39
|
-
const flatbuffers = __importStar(require("flatbuffers"));
|
|
40
|
-
class DegradeRequest {
|
|
41
|
-
bb = null;
|
|
42
|
-
bb_pos = 0;
|
|
43
|
-
__init(i, bb) {
|
|
44
|
-
this.bb_pos = i;
|
|
45
|
-
this.bb = bb;
|
|
46
|
-
return this;
|
|
47
|
-
}
|
|
48
|
-
static getRootAsDegradeRequest(bb, obj) {
|
|
49
|
-
return (obj || new DegradeRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
50
|
-
}
|
|
51
|
-
static getSizePrefixedRootAsDegradeRequest(bb, obj) {
|
|
52
|
-
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
53
|
-
return (obj || new DegradeRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
54
|
-
}
|
|
55
|
-
durationMs() {
|
|
56
|
-
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
57
|
-
return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
|
|
58
|
-
}
|
|
59
|
-
maxDelayMs() {
|
|
60
|
-
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
61
|
-
return offset ? this.bb.readUint16(this.bb_pos + offset) : 0;
|
|
62
|
-
}
|
|
63
|
-
delayPercent() {
|
|
64
|
-
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
65
|
-
return offset ? this.bb.readUint8(this.bb_pos + offset) : 0;
|
|
66
|
-
}
|
|
67
|
-
lossPercent() {
|
|
68
|
-
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
69
|
-
return offset ? this.bb.readUint8(this.bb_pos + offset) : 0;
|
|
70
|
-
}
|
|
71
|
-
static startDegradeRequest(builder) {
|
|
72
|
-
builder.startObject(4);
|
|
73
|
-
}
|
|
74
|
-
static addDurationMs(builder, durationMs) {
|
|
75
|
-
builder.addFieldInt32(0, durationMs, 0);
|
|
76
|
-
}
|
|
77
|
-
static addMaxDelayMs(builder, maxDelayMs) {
|
|
78
|
-
builder.addFieldInt16(1, maxDelayMs, 0);
|
|
79
|
-
}
|
|
80
|
-
static addDelayPercent(builder, delayPercent) {
|
|
81
|
-
builder.addFieldInt8(2, delayPercent, 0);
|
|
82
|
-
}
|
|
83
|
-
static addLossPercent(builder, lossPercent) {
|
|
84
|
-
builder.addFieldInt8(3, lossPercent, 0);
|
|
85
|
-
}
|
|
86
|
-
static endDegradeRequest(builder) {
|
|
87
|
-
const offset = builder.endObject();
|
|
88
|
-
return offset;
|
|
89
|
-
}
|
|
90
|
-
static createDegradeRequest(builder, durationMs, maxDelayMs, delayPercent, lossPercent) {
|
|
91
|
-
DegradeRequest.startDegradeRequest(builder);
|
|
92
|
-
DegradeRequest.addDurationMs(builder, durationMs);
|
|
93
|
-
DegradeRequest.addMaxDelayMs(builder, maxDelayMs);
|
|
94
|
-
DegradeRequest.addDelayPercent(builder, delayPercent);
|
|
95
|
-
DegradeRequest.addLossPercent(builder, lossPercent);
|
|
96
|
-
return DegradeRequest.endDegradeRequest(builder);
|
|
97
|
-
}
|
|
98
|
-
unpack() {
|
|
99
|
-
return new DegradeRequestT(this.durationMs(), this.maxDelayMs(), this.delayPercent(), this.lossPercent());
|
|
100
|
-
}
|
|
101
|
-
unpackTo(_o) {
|
|
102
|
-
_o.durationMs = this.durationMs();
|
|
103
|
-
_o.maxDelayMs = this.maxDelayMs();
|
|
104
|
-
_o.delayPercent = this.delayPercent();
|
|
105
|
-
_o.lossPercent = this.lossPercent();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
exports.DegradeRequest = DegradeRequest;
|
|
109
|
-
class DegradeRequestT {
|
|
110
|
-
durationMs;
|
|
111
|
-
maxDelayMs;
|
|
112
|
-
delayPercent;
|
|
113
|
-
lossPercent;
|
|
114
|
-
constructor(durationMs = 0, maxDelayMs = 0, delayPercent = 0, lossPercent = 0) {
|
|
115
|
-
this.durationMs = durationMs;
|
|
116
|
-
this.maxDelayMs = maxDelayMs;
|
|
117
|
-
this.delayPercent = delayPercent;
|
|
118
|
-
this.lossPercent = lossPercent;
|
|
119
|
-
}
|
|
120
|
-
pack(builder) {
|
|
121
|
-
return DegradeRequest.createDegradeRequest(builder, this.durationMs, this.maxDelayMs, this.delayPercent, this.lossPercent);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
exports.DegradeRequestT = DegradeRequestT;
|