mediasoup 3.20.6 → 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/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/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/npm-scripts.mjs +13 -8
- package/package.json +6 -6
- package/worker/fbs/meson.build +0 -1
- package/worker/fbs/plainTransport.fbs +1 -1
- package/worker/fbs/worker.fbs +0 -2
- package/worker/include/RTC/ICE/StunPacket.hpp +8 -9
- package/worker/include/RTC/RTP/Packet.hpp +1 -1
- package/worker/include/RTC/RTP/ProbationGenerator.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/Chunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/ErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/Packet.hpp +1 -2
- package/worker/include/RTC/SCTP/packet/Parameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/TLV.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/DataChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/ForwardTsnChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/IDataChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/IForwardTsnChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/InitAckChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/InitChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/SackChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/ShutdownChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/errorCauses/InvalidStreamIdentifierErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/errorCauses/MissingMandatoryParameterErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/errorCauses/NoUserDataErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/errorCauses/StaleCookieErrorCause.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/AddIncomingStreamsRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/AddOutgoingStreamsRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/CookiePreservativeParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/IPv4AddressParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/IPv6AddressParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/IncomingSsnResetRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/OutgoingSsnResetRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/ReconfigurationResponseParameter.hpp +2 -2
- package/worker/include/RTC/SCTP/packet/parameters/SsnTsnResetRequestParameter.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/parameters/ZeroChecksumAcceptableParameter.hpp +1 -1
- package/worker/include/Settings.hpp +0 -1
- package/worker/include/handles/TcpConnectionHandle.hpp +0 -4
- package/worker/include/handles/UdpSocketHandle.hpp +0 -4
- package/worker/meson.build +0 -34
- package/worker/meson_options.txt +0 -1
- package/worker/src/RTC/PipeTransport.cpp +5 -5
- package/worker/src/RTC/PlainTransport.cpp +5 -5
- package/worker/src/RTC/RTP/Packet.cpp +0 -2
- package/worker/src/RTC/RTP/RtpStreamSend.cpp +0 -20
- package/worker/src/RTC/Router.cpp +0 -37
- package/worker/src/RTC/SCTP/association/Association.cpp +12 -7
- package/worker/src/RTC/SimpleProducerStreamManager.cpp +6 -3
- package/worker/src/RTC/SimulcastProducerStreamManager.cpp +2 -2
- package/worker/src/RTC/SrtpSession.cpp +0 -24
- package/worker/src/RTC/Transport.cpp +3 -22
- package/worker/src/RTC/WebRtcTransport.cpp +5 -5
- package/worker/src/Settings.cpp +0 -14
- package/worker/src/Utils/Crypto.cpp +3 -3
- package/worker/src/Utils/String.cpp +1 -1
- package/worker/src/Worker.cpp +5 -38
- package/worker/src/handles/TcpConnectionHandle.cpp +1 -42
- package/worker/src/handles/UdpSocketHandle.cpp +1 -42
- package/worker/src/lib.cpp +1 -10
- 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/worker/fbs/liburing.fbs +0 -7
- package/worker/include/DepLibUring.hpp +0 -143
- package/worker/src/DepLibUring.cpp +0 -638
- package/worker/subprojects/liburing.wrap +0 -14
|
@@ -34,10 +34,9 @@ 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.FirTraceInfoT = exports.FirTraceInfo = void 0;
|
|
39
38
|
const flatbuffers = __importStar(require("flatbuffers"));
|
|
40
|
-
class
|
|
39
|
+
class FirTraceInfo {
|
|
41
40
|
bb = null;
|
|
42
41
|
bb_pos = 0;
|
|
43
42
|
__init(i, bb) {
|
|
@@ -45,34 +44,47 @@ class CloseRequest {
|
|
|
45
44
|
this.bb = bb;
|
|
46
45
|
return this;
|
|
47
46
|
}
|
|
48
|
-
static
|
|
49
|
-
return (obj || new
|
|
47
|
+
static getRootAsFirTraceInfo(bb, obj) {
|
|
48
|
+
return (obj || new FirTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
50
49
|
}
|
|
51
|
-
static
|
|
50
|
+
static getSizePrefixedRootAsFirTraceInfo(bb, obj) {
|
|
52
51
|
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
53
|
-
return (obj || new
|
|
52
|
+
return (obj || new FirTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
ssrc() {
|
|
55
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
56
|
+
return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
|
|
57
57
|
}
|
|
58
|
-
static
|
|
58
|
+
static startFirTraceInfo(builder) {
|
|
59
|
+
builder.startObject(1);
|
|
60
|
+
}
|
|
61
|
+
static addSsrc(builder, ssrc) {
|
|
62
|
+
builder.addFieldInt32(0, ssrc, 0);
|
|
63
|
+
}
|
|
64
|
+
static endFirTraceInfo(builder) {
|
|
59
65
|
const offset = builder.endObject();
|
|
60
66
|
return offset;
|
|
61
67
|
}
|
|
62
|
-
static
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
static createFirTraceInfo(builder, ssrc) {
|
|
69
|
+
FirTraceInfo.startFirTraceInfo(builder);
|
|
70
|
+
FirTraceInfo.addSsrc(builder, ssrc);
|
|
71
|
+
return FirTraceInfo.endFirTraceInfo(builder);
|
|
65
72
|
}
|
|
66
73
|
unpack() {
|
|
67
|
-
return new
|
|
74
|
+
return new FirTraceInfoT(this.ssrc());
|
|
75
|
+
}
|
|
76
|
+
unpackTo(_o) {
|
|
77
|
+
_o.ssrc = this.ssrc();
|
|
68
78
|
}
|
|
69
|
-
unpackTo(_o) { }
|
|
70
79
|
}
|
|
71
|
-
exports.
|
|
72
|
-
class
|
|
73
|
-
|
|
80
|
+
exports.FirTraceInfo = FirTraceInfo;
|
|
81
|
+
class FirTraceInfoT {
|
|
82
|
+
ssrc;
|
|
83
|
+
constructor(ssrc = 0) {
|
|
84
|
+
this.ssrc = ssrc;
|
|
85
|
+
}
|
|
74
86
|
pack(builder) {
|
|
75
|
-
return
|
|
87
|
+
return FirTraceInfo.createFirTraceInfo(builder, this.ssrc);
|
|
76
88
|
}
|
|
77
89
|
}
|
|
78
|
-
exports.
|
|
90
|
+
exports.FirTraceInfoT = FirTraceInfoT;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
import { Dump, DumpT } from '../../fbs/rtp-packet/dump';
|
|
3
|
+
export declare class KeyFrameTraceInfo implements flatbuffers.IUnpackableObject<KeyFrameTraceInfoT> {
|
|
4
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
5
|
+
bb_pos: number;
|
|
6
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): KeyFrameTraceInfo;
|
|
7
|
+
static getRootAsKeyFrameTraceInfo(bb: flatbuffers.ByteBuffer, obj?: KeyFrameTraceInfo): KeyFrameTraceInfo;
|
|
8
|
+
static getSizePrefixedRootAsKeyFrameTraceInfo(bb: flatbuffers.ByteBuffer, obj?: KeyFrameTraceInfo): KeyFrameTraceInfo;
|
|
9
|
+
rtpPacket(obj?: Dump): Dump | null;
|
|
10
|
+
isRtx(): boolean;
|
|
11
|
+
static startKeyFrameTraceInfo(builder: flatbuffers.Builder): void;
|
|
12
|
+
static addRtpPacket(builder: flatbuffers.Builder, rtpPacketOffset: flatbuffers.Offset): void;
|
|
13
|
+
static addIsRtx(builder: flatbuffers.Builder, isRtx: boolean): void;
|
|
14
|
+
static endKeyFrameTraceInfo(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
15
|
+
static createKeyFrameTraceInfo(builder: flatbuffers.Builder, rtpPacketOffset: flatbuffers.Offset, isRtx: boolean): flatbuffers.Offset;
|
|
16
|
+
unpack(): KeyFrameTraceInfoT;
|
|
17
|
+
unpackTo(_o: KeyFrameTraceInfoT): void;
|
|
18
|
+
}
|
|
19
|
+
export declare class KeyFrameTraceInfoT implements flatbuffers.IGeneratedObject {
|
|
20
|
+
rtpPacket: DumpT | null;
|
|
21
|
+
isRtx: boolean;
|
|
22
|
+
constructor(rtpPacket?: DumpT | null, isRtx?: boolean);
|
|
23
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=key-frame-trace-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-frame-trace-info.d.ts","sourceRoot":"","sources":["../../../src/fbs/trace-events/key-frame-trace-info.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGxD,qBAAa,iBAAkB,YAAW,WAAW,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;IACzF,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,iBAAiB;IAM/D,MAAM,CAAC,0BAA0B,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,iBAAiB,GAAE,iBAAiB;IAItG,MAAM,CAAC,sCAAsC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,iBAAiB,GAAE,iBAAiB;IAKlH,SAAS,CAAC,GAAG,CAAC,EAAC,IAAI,GAAE,IAAI,GAAC,IAAI;IAK9B,KAAK,IAAG,OAAO;IAKf,MAAM,CAAC,sBAAsB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAIzD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,eAAe,EAAC,WAAW,CAAC,MAAM;IAInF,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,KAAK,EAAC,OAAO;IAI1D,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAM3E,MAAM,CAAC,uBAAuB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,eAAe,EAAC,WAAW,CAAC,MAAM,EAAE,KAAK,EAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAOjI,MAAM,IAAI,kBAAkB;IAQ5B,QAAQ,CAAC,EAAE,EAAE,kBAAkB,GAAG,IAAI;CAIrC;AAED,qBAAa,kBAAmB,YAAW,WAAW,CAAC,gBAAgB;IAE9D,SAAS,EAAE,KAAK,GAAC,IAAI;IACrB,KAAK,EAAE,OAAO;gBADd,SAAS,GAAE,KAAK,GAAC,IAAW,EAC5B,KAAK,GAAE,OAAe;IAI/B,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
|
|
@@ -0,0 +1,104 @@
|
|
|
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.KeyFrameTraceInfoT = exports.KeyFrameTraceInfo = void 0;
|
|
38
|
+
const flatbuffers = __importStar(require("flatbuffers"));
|
|
39
|
+
const dump_1 = require("../../fbs/rtp-packet/dump");
|
|
40
|
+
class KeyFrameTraceInfo {
|
|
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 getRootAsKeyFrameTraceInfo(bb, obj) {
|
|
49
|
+
return (obj || new KeyFrameTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
50
|
+
}
|
|
51
|
+
static getSizePrefixedRootAsKeyFrameTraceInfo(bb, obj) {
|
|
52
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
53
|
+
return (obj || new KeyFrameTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
54
|
+
}
|
|
55
|
+
rtpPacket(obj) {
|
|
56
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
57
|
+
return offset ? (obj || new dump_1.Dump()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
|
|
58
|
+
}
|
|
59
|
+
isRtx() {
|
|
60
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
61
|
+
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
62
|
+
}
|
|
63
|
+
static startKeyFrameTraceInfo(builder) {
|
|
64
|
+
builder.startObject(2);
|
|
65
|
+
}
|
|
66
|
+
static addRtpPacket(builder, rtpPacketOffset) {
|
|
67
|
+
builder.addFieldOffset(0, rtpPacketOffset, 0);
|
|
68
|
+
}
|
|
69
|
+
static addIsRtx(builder, isRtx) {
|
|
70
|
+
builder.addFieldInt8(1, +isRtx, +false);
|
|
71
|
+
}
|
|
72
|
+
static endKeyFrameTraceInfo(builder) {
|
|
73
|
+
const offset = builder.endObject();
|
|
74
|
+
builder.requiredField(offset, 4); // rtp_packet
|
|
75
|
+
return offset;
|
|
76
|
+
}
|
|
77
|
+
static createKeyFrameTraceInfo(builder, rtpPacketOffset, isRtx) {
|
|
78
|
+
KeyFrameTraceInfo.startKeyFrameTraceInfo(builder);
|
|
79
|
+
KeyFrameTraceInfo.addRtpPacket(builder, rtpPacketOffset);
|
|
80
|
+
KeyFrameTraceInfo.addIsRtx(builder, isRtx);
|
|
81
|
+
return KeyFrameTraceInfo.endKeyFrameTraceInfo(builder);
|
|
82
|
+
}
|
|
83
|
+
unpack() {
|
|
84
|
+
return new KeyFrameTraceInfoT((this.rtpPacket() !== null ? this.rtpPacket().unpack() : null), this.isRtx());
|
|
85
|
+
}
|
|
86
|
+
unpackTo(_o) {
|
|
87
|
+
_o.rtpPacket = (this.rtpPacket() !== null ? this.rtpPacket().unpack() : null);
|
|
88
|
+
_o.isRtx = this.isRtx();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.KeyFrameTraceInfo = KeyFrameTraceInfo;
|
|
92
|
+
class KeyFrameTraceInfoT {
|
|
93
|
+
rtpPacket;
|
|
94
|
+
isRtx;
|
|
95
|
+
constructor(rtpPacket = null, isRtx = false) {
|
|
96
|
+
this.rtpPacket = rtpPacket;
|
|
97
|
+
this.isRtx = isRtx;
|
|
98
|
+
}
|
|
99
|
+
pack(builder) {
|
|
100
|
+
const rtpPacket = (this.rtpPacket !== null ? this.rtpPacket.pack(builder) : 0);
|
|
101
|
+
return KeyFrameTraceInfo.createKeyFrameTraceInfo(builder, rtpPacket, this.isRtx);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.KeyFrameTraceInfoT = KeyFrameTraceInfoT;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class PliTraceInfo implements flatbuffers.IUnpackableObject<PliTraceInfoT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): PliTraceInfo;
|
|
6
|
+
static getRootAsPliTraceInfo(bb: flatbuffers.ByteBuffer, obj?: PliTraceInfo): PliTraceInfo;
|
|
7
|
+
static getSizePrefixedRootAsPliTraceInfo(bb: flatbuffers.ByteBuffer, obj?: PliTraceInfo): PliTraceInfo;
|
|
8
|
+
ssrc(): number;
|
|
9
|
+
static startPliTraceInfo(builder: flatbuffers.Builder): void;
|
|
10
|
+
static addSsrc(builder: flatbuffers.Builder, ssrc: number): void;
|
|
11
|
+
static endPliTraceInfo(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
12
|
+
static createPliTraceInfo(builder: flatbuffers.Builder, ssrc: number): flatbuffers.Offset;
|
|
13
|
+
unpack(): PliTraceInfoT;
|
|
14
|
+
unpackTo(_o: PliTraceInfoT): void;
|
|
15
|
+
}
|
|
16
|
+
export declare class PliTraceInfoT implements flatbuffers.IGeneratedObject {
|
|
17
|
+
ssrc: number;
|
|
18
|
+
constructor(ssrc?: number);
|
|
19
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=pli-trace-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pli-trace-info.d.ts","sourceRoot":"","sources":["../../../src/fbs/trace-events/pli-trace-info.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,YAAa,YAAW,WAAW,CAAC,iBAAiB,CAAC,aAAa,CAAC;IAC/E,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,YAAY;IAM1D,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,YAAY,GAAE,YAAY;IAIvF,MAAM,CAAC,iCAAiC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,YAAY,GAAE,YAAY;IAKnG,IAAI,IAAG,MAAM;IAKb,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAIpD,MAAM,CAAC,OAAO,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,IAAI,EAAC,MAAM;IAIvD,MAAM,CAAC,eAAe,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAKtE,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,IAAI,EAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IAMtF,MAAM,IAAI,aAAa;IAOvB,QAAQ,CAAC,EAAE,EAAE,aAAa,GAAG,IAAI;CAGhC;AAED,qBAAa,aAAc,YAAW,WAAW,CAAC,gBAAgB;IAEzD,IAAI,EAAE,MAAM;gBAAZ,IAAI,GAAE,MAAU;IAIzB,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAKpD"}
|
|
@@ -34,10 +34,9 @@ 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.PliTraceInfoT = exports.PliTraceInfo = void 0;
|
|
39
38
|
const flatbuffers = __importStar(require("flatbuffers"));
|
|
40
|
-
class
|
|
39
|
+
class PliTraceInfo {
|
|
41
40
|
bb = null;
|
|
42
41
|
bb_pos = 0;
|
|
43
42
|
__init(i, bb) {
|
|
@@ -45,34 +44,47 @@ class CloseWorkerNotification {
|
|
|
45
44
|
this.bb = bb;
|
|
46
45
|
return this;
|
|
47
46
|
}
|
|
48
|
-
static
|
|
49
|
-
return (obj || new
|
|
47
|
+
static getRootAsPliTraceInfo(bb, obj) {
|
|
48
|
+
return (obj || new PliTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
50
49
|
}
|
|
51
|
-
static
|
|
50
|
+
static getSizePrefixedRootAsPliTraceInfo(bb, obj) {
|
|
52
51
|
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
53
|
-
return (obj || new
|
|
52
|
+
return (obj || new PliTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
54
53
|
}
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
ssrc() {
|
|
55
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
56
|
+
return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
|
|
57
57
|
}
|
|
58
|
-
static
|
|
58
|
+
static startPliTraceInfo(builder) {
|
|
59
|
+
builder.startObject(1);
|
|
60
|
+
}
|
|
61
|
+
static addSsrc(builder, ssrc) {
|
|
62
|
+
builder.addFieldInt32(0, ssrc, 0);
|
|
63
|
+
}
|
|
64
|
+
static endPliTraceInfo(builder) {
|
|
59
65
|
const offset = builder.endObject();
|
|
60
66
|
return offset;
|
|
61
67
|
}
|
|
62
|
-
static
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
static createPliTraceInfo(builder, ssrc) {
|
|
69
|
+
PliTraceInfo.startPliTraceInfo(builder);
|
|
70
|
+
PliTraceInfo.addSsrc(builder, ssrc);
|
|
71
|
+
return PliTraceInfo.endPliTraceInfo(builder);
|
|
65
72
|
}
|
|
66
73
|
unpack() {
|
|
67
|
-
return new
|
|
74
|
+
return new PliTraceInfoT(this.ssrc());
|
|
75
|
+
}
|
|
76
|
+
unpackTo(_o) {
|
|
77
|
+
_o.ssrc = this.ssrc();
|
|
68
78
|
}
|
|
69
|
-
unpackTo(_o) { }
|
|
70
79
|
}
|
|
71
|
-
exports.
|
|
72
|
-
class
|
|
73
|
-
|
|
80
|
+
exports.PliTraceInfo = PliTraceInfo;
|
|
81
|
+
class PliTraceInfoT {
|
|
82
|
+
ssrc;
|
|
83
|
+
constructor(ssrc = 0) {
|
|
84
|
+
this.ssrc = ssrc;
|
|
85
|
+
}
|
|
74
86
|
pack(builder) {
|
|
75
|
-
return
|
|
87
|
+
return PliTraceInfo.createPliTraceInfo(builder, this.ssrc);
|
|
76
88
|
}
|
|
77
89
|
}
|
|
78
|
-
exports.
|
|
90
|
+
exports.PliTraceInfoT = PliTraceInfoT;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
import { Dump, DumpT } from '../../fbs/rtp-packet/dump';
|
|
3
|
+
export declare class RtpTraceInfo implements flatbuffers.IUnpackableObject<RtpTraceInfoT> {
|
|
4
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
5
|
+
bb_pos: number;
|
|
6
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): RtpTraceInfo;
|
|
7
|
+
static getRootAsRtpTraceInfo(bb: flatbuffers.ByteBuffer, obj?: RtpTraceInfo): RtpTraceInfo;
|
|
8
|
+
static getSizePrefixedRootAsRtpTraceInfo(bb: flatbuffers.ByteBuffer, obj?: RtpTraceInfo): RtpTraceInfo;
|
|
9
|
+
rtpPacket(obj?: Dump): Dump | null;
|
|
10
|
+
isRtx(): boolean;
|
|
11
|
+
static startRtpTraceInfo(builder: flatbuffers.Builder): void;
|
|
12
|
+
static addRtpPacket(builder: flatbuffers.Builder, rtpPacketOffset: flatbuffers.Offset): void;
|
|
13
|
+
static addIsRtx(builder: flatbuffers.Builder, isRtx: boolean): void;
|
|
14
|
+
static endRtpTraceInfo(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
15
|
+
static createRtpTraceInfo(builder: flatbuffers.Builder, rtpPacketOffset: flatbuffers.Offset, isRtx: boolean): flatbuffers.Offset;
|
|
16
|
+
unpack(): RtpTraceInfoT;
|
|
17
|
+
unpackTo(_o: RtpTraceInfoT): void;
|
|
18
|
+
}
|
|
19
|
+
export declare class RtpTraceInfoT implements flatbuffers.IGeneratedObject {
|
|
20
|
+
rtpPacket: DumpT | null;
|
|
21
|
+
isRtx: boolean;
|
|
22
|
+
constructor(rtpPacket?: DumpT | null, isRtx?: boolean);
|
|
23
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=rtp-trace-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rtp-trace-info.d.ts","sourceRoot":"","sources":["../../../src/fbs/trace-events/rtp-trace-info.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGxD,qBAAa,YAAa,YAAW,WAAW,CAAC,iBAAiB,CAAC,aAAa,CAAC;IAC/E,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,YAAY;IAM1D,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,YAAY,GAAE,YAAY;IAIvF,MAAM,CAAC,iCAAiC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,YAAY,GAAE,YAAY;IAKnG,SAAS,CAAC,GAAG,CAAC,EAAC,IAAI,GAAE,IAAI,GAAC,IAAI;IAK9B,KAAK,IAAG,OAAO;IAKf,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAIpD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,eAAe,EAAC,WAAW,CAAC,MAAM;IAInF,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,KAAK,EAAC,OAAO;IAI1D,MAAM,CAAC,eAAe,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAMtE,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,eAAe,EAAC,WAAW,CAAC,MAAM,EAAE,KAAK,EAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAO5H,MAAM,IAAI,aAAa;IAQvB,QAAQ,CAAC,EAAE,EAAE,aAAa,GAAG,IAAI;CAIhC;AAED,qBAAa,aAAc,YAAW,WAAW,CAAC,gBAAgB;IAEzD,SAAS,EAAE,KAAK,GAAC,IAAI;IACrB,KAAK,EAAE,OAAO;gBADd,SAAS,GAAE,KAAK,GAAC,IAAW,EAC5B,KAAK,GAAE,OAAe;IAI/B,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
|
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; } });
|
package/npm-scripts.mjs
CHANGED
|
@@ -86,7 +86,7 @@ async function run() {
|
|
|
86
86
|
// So here we generate flatbuffers definitions for TypeScript and compile
|
|
87
87
|
// TypeScript to JavaScript.
|
|
88
88
|
case 'prepare': {
|
|
89
|
-
await flatcNode();
|
|
89
|
+
await flatcNode({ force: false });
|
|
90
90
|
buildTypescript({ force: false });
|
|
91
91
|
|
|
92
92
|
break;
|
|
@@ -203,7 +203,7 @@ async function run() {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
case 'flatc:node': {
|
|
206
|
-
await flatcNode();
|
|
206
|
+
await flatcNode({ force: true });
|
|
207
207
|
|
|
208
208
|
break;
|
|
209
209
|
}
|
|
@@ -277,8 +277,7 @@ function getPython() {
|
|
|
277
277
|
function getWorkerPrebuildTarName() {
|
|
278
278
|
let workerPrebuildTarName = `mediasoup-worker-${pkg.version}-${os.platform()}-${os.arch()}`;
|
|
279
279
|
|
|
280
|
-
// In Linux we want to know about kernel version
|
|
281
|
-
// io-uring.
|
|
280
|
+
// In Linux we want to know about kernel version.
|
|
282
281
|
if (os.platform() === 'linux') {
|
|
283
282
|
const kernelMajorVersion = Number(os.release().split('.')[0]);
|
|
284
283
|
|
|
@@ -319,6 +318,7 @@ function deleteNodeLib() {
|
|
|
319
318
|
}
|
|
320
319
|
|
|
321
320
|
function buildTypescript({ force }) {
|
|
321
|
+
// Skip JavaScript code generation if the output already exists, unless forced.
|
|
322
322
|
if (!force && fs.existsSync('node/lib')) {
|
|
323
323
|
return;
|
|
324
324
|
}
|
|
@@ -420,8 +420,13 @@ function tidyWorker({ fix }) {
|
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
async function flatcNode() {
|
|
424
|
-
|
|
423
|
+
async function flatcNode({ force }) {
|
|
424
|
+
// Skip flatbuffers generation if the output already exists, unless forced.
|
|
425
|
+
if (!force && fs.existsSync(path.join('node', 'src', 'fbs'))) {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
logInfo(`flatcNode() [force:${force}]`);
|
|
425
430
|
|
|
426
431
|
// NOTE: Load dep on demand since it's a devDependency.
|
|
427
432
|
const ini = await import('ini');
|
|
@@ -531,14 +536,14 @@ function publishDryRun() {
|
|
|
531
536
|
// real publish would, reporting its contents without writing any file or
|
|
532
537
|
// contacting the registry. Useful to validate the `files` list in
|
|
533
538
|
// package.json and that the package builds before tagging a release.
|
|
534
|
-
executeCmd('npm pack --dry-run');
|
|
539
|
+
executeCmd('npm pack --dry-run --loglevel warn');
|
|
535
540
|
}
|
|
536
541
|
|
|
537
542
|
async function checkRelease() {
|
|
538
543
|
logInfo('checkRelease()');
|
|
539
544
|
|
|
540
545
|
installNodeDeps();
|
|
541
|
-
await flatcNode();
|
|
546
|
+
await flatcNode({ force: true });
|
|
542
547
|
buildTypescript({ force: true });
|
|
543
548
|
buildWorker();
|
|
544
549
|
lintNode();
|