mediasoup 3.20.8 → 3.20.9

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.
Files changed (135) hide show
  1. package/README.md +8 -2
  2. package/node/lib/WebRtcServer.d.ts.map +1 -1
  3. package/node/lib/WebRtcServer.js +0 -7
  4. package/node/lib/WebRtcServerTypes.d.ts +0 -5
  5. package/node/lib/WebRtcServerTypes.d.ts.map +1 -1
  6. package/node/lib/Worker.d.ts +1 -1
  7. package/node/lib/Worker.d.ts.map +1 -1
  8. package/node/lib/Worker.js +1 -11
  9. package/node/lib/WorkerTypes.d.ts +0 -9
  10. package/node/lib/WorkerTypes.d.ts.map +1 -1
  11. package/node/lib/fbs/plain-transport/connect-response.d.ts.map +1 -1
  12. package/node/lib/fbs/plain-transport/connect-response.js +0 -1
  13. package/node/lib/fbs/web-rtc-server/dump-response.d.ts +2 -9
  14. package/node/lib/fbs/web-rtc-server/dump-response.d.ts.map +1 -1
  15. package/node/lib/fbs/web-rtc-server/dump-response.js +5 -33
  16. package/node/lib/fbs/web-rtc-server.d.ts +0 -1
  17. package/node/lib/fbs/web-rtc-server.d.ts.map +1 -1
  18. package/node/lib/fbs/web-rtc-server.js +1 -4
  19. package/node/lib/fbs/worker/dump-response.d.ts +1 -5
  20. package/node/lib/fbs/worker/dump-response.d.ts.map +1 -1
  21. package/node/lib/fbs/worker/dump-response.js +3 -16
  22. package/node/lib/index.d.ts +1 -1
  23. package/node/lib/index.d.ts.map +1 -1
  24. package/node/lib/index.js +1 -2
  25. package/node/lib/test/test-PlainTransport.js +30 -0
  26. package/node/lib/test/test-WebRtcServer.js +0 -7
  27. package/node/lib/test/test-Worker.js +0 -1
  28. package/npm-scripts.mjs +132 -55
  29. package/package.json +6 -4
  30. package/worker/fbs/webRtcServer.fbs +0 -6
  31. package/worker/include/RTC/TransportTuple.hpp +70 -14
  32. package/worker/include/RTC/WebRtcServer.hpp +5 -2
  33. package/worker/include/Utils.hpp +6 -0
  34. package/worker/src/RTC/PortManager.cpp +16 -20
  35. package/worker/src/RTC/SeqManager.cpp +4 -1
  36. package/worker/src/RTC/TransportTuple.cpp +87 -50
  37. package/worker/src/RTC/WebRtcServer.cpp +20 -29
  38. package/worker/test/src/RTC/TestSeqManager.cpp +167 -62
  39. package/worker/test/src/RTC/TestTransportTuple.cpp +21 -14
  40. package/node/lib/fbs/data-consumer/binary.d.ts +0 -25
  41. package/node/lib/fbs/data-consumer/binary.d.ts.map +0 -1
  42. package/node/lib/fbs/data-consumer/binary.js +0 -110
  43. package/node/lib/fbs/data-consumer/data.d.ts +0 -10
  44. package/node/lib/fbs/data-consumer/data.d.ts.map +0 -1
  45. package/node/lib/fbs/data-consumer/data.js +0 -30
  46. package/node/lib/fbs/data-consumer/string.d.ts +0 -22
  47. package/node/lib/fbs/data-consumer/string.d.ts.map +0 -1
  48. package/node/lib/fbs/data-consumer/string.js +0 -92
  49. package/node/lib/fbs/data-producer/binary.d.ts +0 -25
  50. package/node/lib/fbs/data-producer/binary.d.ts.map +0 -1
  51. package/node/lib/fbs/data-producer/binary.js +0 -110
  52. package/node/lib/fbs/data-producer/data.d.ts +0 -10
  53. package/node/lib/fbs/data-producer/data.d.ts.map +0 -1
  54. package/node/lib/fbs/data-producer/data.js +0 -30
  55. package/node/lib/fbs/data-producer/string.d.ts +0 -22
  56. package/node/lib/fbs/data-producer/string.d.ts.map +0 -1
  57. package/node/lib/fbs/data-producer/string.js +0 -92
  58. package/node/lib/fbs/lib-uring/dump.d.ts +0 -27
  59. package/node/lib/fbs/lib-uring/dump.d.ts.map +0 -1
  60. package/node/lib/fbs/lib-uring/dump.js +0 -113
  61. package/node/lib/fbs/lib-uring.d.ts +0 -2
  62. package/node/lib/fbs/lib-uring.d.ts.map +0 -1
  63. package/node/lib/fbs/lib-uring.js +0 -8
  64. package/node/lib/fbs/message/type.d.ts +0 -7
  65. package/node/lib/fbs/message/type.d.ts.map +0 -1
  66. package/node/lib/fbs/message/type.js +0 -11
  67. package/node/lib/fbs/message-from-worker/body.d.ts +0 -12
  68. package/node/lib/fbs/message-from-worker/body.d.ts.map +0 -1
  69. package/node/lib/fbs/message-from-worker/body.js +0 -34
  70. package/node/lib/fbs/message-from-worker/message.d.ts +0 -30
  71. package/node/lib/fbs/message-from-worker/message.d.ts.map +0 -1
  72. package/node/lib/fbs/message-from-worker/message.js +0 -122
  73. package/node/lib/fbs/message-from-worker.d.ts +0 -3
  74. package/node/lib/fbs/message-from-worker.d.ts.map +0 -1
  75. package/node/lib/fbs/message-from-worker.js +0 -9
  76. package/node/lib/fbs/message-to-worker/body.d.ts +0 -10
  77. package/node/lib/fbs/message-to-worker/body.d.ts.map +0 -1
  78. package/node/lib/fbs/message-to-worker/body.js +0 -30
  79. package/node/lib/fbs/message-to-worker/message.d.ts +0 -29
  80. package/node/lib/fbs/message-to-worker/message.d.ts.map +0 -1
  81. package/node/lib/fbs/message-to-worker/message.js +0 -122
  82. package/node/lib/fbs/message-to-worker.d.ts +0 -3
  83. package/node/lib/fbs/message-to-worker.d.ts.map +0 -1
  84. package/node/lib/fbs/message-to-worker.js +0 -9
  85. package/node/lib/fbs/notification-from-worker/body.d.ts +0 -44
  86. package/node/lib/fbs/notification-from-worker/body.d.ts.map +0 -1
  87. package/node/lib/fbs/notification-from-worker/body.js +0 -98
  88. package/node/lib/fbs/notification-from-worker/event.d.ts +0 -31
  89. package/node/lib/fbs/notification-from-worker/event.d.ts.map +0 -1
  90. package/node/lib/fbs/notification-from-worker/event.js +0 -35
  91. package/node/lib/fbs/notification-from-worker/notification.d.ts +0 -52
  92. package/node/lib/fbs/notification-from-worker/notification.d.ts.map +0 -1
  93. package/node/lib/fbs/notification-from-worker/notification.js +0 -140
  94. package/node/lib/fbs/notification-from-worker.d.ts +0 -4
  95. package/node/lib/fbs/notification-from-worker.d.ts.map +0 -1
  96. package/node/lib/fbs/notification-from-worker.js +0 -11
  97. package/node/lib/fbs/notification-to-worker/body.d.ts +0 -12
  98. package/node/lib/fbs/notification-to-worker/body.d.ts.map +0 -1
  99. package/node/lib/fbs/notification-to-worker/body.js +0 -34
  100. package/node/lib/fbs/notification-to-worker/event.d.ts +0 -6
  101. package/node/lib/fbs/notification-to-worker/event.d.ts.map +0 -1
  102. package/node/lib/fbs/notification-to-worker/event.js +0 -10
  103. package/node/lib/fbs/notification-to-worker/notification.d.ts +0 -36
  104. package/node/lib/fbs/notification-to-worker/notification.d.ts.map +0 -1
  105. package/node/lib/fbs/notification-to-worker/notification.js +0 -140
  106. package/node/lib/fbs/notification-to-worker.d.ts +0 -4
  107. package/node/lib/fbs/notification-to-worker.d.ts.map +0 -1
  108. package/node/lib/fbs/notification-to-worker.js +0 -11
  109. package/node/lib/fbs/sctp-parameters/num-sctp-streams.d.ts +0 -24
  110. package/node/lib/fbs/sctp-parameters/num-sctp-streams.d.ts.map +0 -1
  111. package/node/lib/fbs/sctp-parameters/num-sctp-streams.js +0 -102
  112. package/node/lib/fbs/trace-events/fir-trace-info.d.ts +0 -21
  113. package/node/lib/fbs/trace-events/fir-trace-info.d.ts.map +0 -1
  114. package/node/lib/fbs/trace-events/fir-trace-info.js +0 -90
  115. package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts +0 -25
  116. package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts.map +0 -1
  117. package/node/lib/fbs/trace-events/key-frame-trace-info.js +0 -104
  118. package/node/lib/fbs/trace-events/pli-trace-info.d.ts +0 -21
  119. package/node/lib/fbs/trace-events/pli-trace-info.d.ts.map +0 -1
  120. package/node/lib/fbs/trace-events/pli-trace-info.js +0 -90
  121. package/node/lib/fbs/trace-events/rtp-trace-info.d.ts +0 -25
  122. package/node/lib/fbs/trace-events/rtp-trace-info.d.ts.map +0 -1
  123. package/node/lib/fbs/trace-events/rtp-trace-info.js +0 -104
  124. package/node/lib/fbs/trace-events/trace-event-type.d.ts +0 -8
  125. package/node/lib/fbs/trace-events/trace-event-type.d.ts.map +0 -1
  126. package/node/lib/fbs/trace-events/trace-event-type.js +0 -12
  127. package/node/lib/fbs/trace-events/trace-info.d.ts +0 -14
  128. package/node/lib/fbs/trace-events/trace-info.d.ts.map +0 -1
  129. package/node/lib/fbs/trace-events/trace-info.js +0 -38
  130. package/node/lib/fbs/trace-events.d.ts +0 -7
  131. package/node/lib/fbs/trace-events.d.ts.map +0 -1
  132. package/node/lib/fbs/trace-events.js +0 -20
  133. package/node/lib/fbs/web-rtc-server/tuple-hash.d.ts +0 -25
  134. package/node/lib/fbs/web-rtc-server/tuple-hash.d.ts.map +0 -1
  135. package/node/lib/fbs/web-rtc-server/tuple-hash.js +0 -104
@@ -1,34 +0,0 @@
1
- "use strict";
2
- // automatically generated by the FlatBuffers compiler, do not modify
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Body = void 0;
5
- exports.unionToBody = unionToBody;
6
- exports.unionListToBody = unionListToBody;
7
- const send_notification_1 = require("../../fbs/data-producer/send-notification");
8
- const send_notification_2 = require("../../fbs/producer/send-notification");
9
- const send_rtcp_notification_1 = require("../../fbs/transport/send-rtcp-notification");
10
- var Body;
11
- (function (Body) {
12
- Body[Body["NONE"] = 0] = "NONE";
13
- Body[Body["Transport_SendRtcpNotification"] = 1] = "Transport_SendRtcpNotification";
14
- Body[Body["Producer_SendNotification"] = 2] = "Producer_SendNotification";
15
- Body[Body["DataProducer_SendNotification"] = 3] = "DataProducer_SendNotification";
16
- })(Body || (exports.Body = Body = {}));
17
- function unionToBody(type, accessor) {
18
- switch (Body[type]) {
19
- case 'NONE': return null;
20
- case 'Transport_SendRtcpNotification': return accessor(new send_rtcp_notification_1.SendRtcpNotification());
21
- case 'Producer_SendNotification': return accessor(new send_notification_2.SendNotification());
22
- case 'DataProducer_SendNotification': return accessor(new send_notification_1.SendNotification());
23
- default: return null;
24
- }
25
- }
26
- function unionListToBody(type, accessor, index) {
27
- switch (Body[type]) {
28
- case 'NONE': return null;
29
- case 'Transport_SendRtcpNotification': return accessor(index, new send_rtcp_notification_1.SendRtcpNotification());
30
- case 'Producer_SendNotification': return accessor(index, new send_notification_2.SendNotification());
31
- case 'DataProducer_SendNotification': return accessor(index, new send_notification_1.SendNotification());
32
- default: return null;
33
- }
34
- }
@@ -1,6 +0,0 @@
1
- export declare enum Event {
2
- TRANSPORT_SEND_RTCP = 0,
3
- PRODUCER_SEND = 1,
4
- DATAPRODUCER_SEND = 2
5
- }
6
- //# sourceMappingURL=event.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-to-worker/event.ts"],"names":[],"mappings":"AAEA,oBAAY,KAAK;IACf,mBAAmB,IAAI;IACvB,aAAa,IAAI;IACjB,iBAAiB,IAAI;CACtB"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- // automatically generated by the FlatBuffers compiler, do not modify
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Event = void 0;
5
- var Event;
6
- (function (Event) {
7
- Event[Event["TRANSPORT_SEND_RTCP"] = 0] = "TRANSPORT_SEND_RTCP";
8
- Event[Event["PRODUCER_SEND"] = 1] = "PRODUCER_SEND";
9
- Event[Event["DATAPRODUCER_SEND"] = 2] = "DATAPRODUCER_SEND";
10
- })(Event || (exports.Event = Event = {}));
@@ -1,36 +0,0 @@
1
- import * as flatbuffers from 'flatbuffers';
2
- import { SendNotificationT as FBS_DataProducer_SendNotificationT } from '../../fbs/data-producer/send-notification';
3
- import { Body } from '../../fbs/notification-to-worker/body';
4
- import { Event } from '../../fbs/notification-to-worker/event';
5
- import { SendNotificationT } from '../../fbs/producer/send-notification';
6
- import { SendRtcpNotificationT } from '../../fbs/transport/send-rtcp-notification';
7
- export declare class Notification implements flatbuffers.IUnpackableObject<NotificationT> {
8
- bb: flatbuffers.ByteBuffer | null;
9
- bb_pos: number;
10
- __init(i: number, bb: flatbuffers.ByteBuffer): Notification;
11
- static getRootAsNotification(bb: flatbuffers.ByteBuffer, obj?: Notification): Notification;
12
- static getSizePrefixedRootAsNotification(bb: flatbuffers.ByteBuffer, obj?: Notification): Notification;
13
- handlerId(): string | null;
14
- handlerId(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
15
- event(): Event;
16
- bodyType(): Body;
17
- body<T extends flatbuffers.Table>(obj: any): any | null;
18
- static startNotification(builder: flatbuffers.Builder): void;
19
- static addHandlerId(builder: flatbuffers.Builder, handlerIdOffset: flatbuffers.Offset): void;
20
- static addEvent(builder: flatbuffers.Builder, event: Event): void;
21
- static addBodyType(builder: flatbuffers.Builder, bodyType: Body): void;
22
- static addBody(builder: flatbuffers.Builder, bodyOffset: flatbuffers.Offset): void;
23
- static endNotification(builder: flatbuffers.Builder): flatbuffers.Offset;
24
- static createNotification(builder: flatbuffers.Builder, handlerIdOffset: flatbuffers.Offset, event: Event, bodyType: Body, bodyOffset: flatbuffers.Offset): flatbuffers.Offset;
25
- unpack(): NotificationT;
26
- unpackTo(_o: NotificationT): void;
27
- }
28
- export declare class NotificationT implements flatbuffers.IGeneratedObject {
29
- handlerId: string | Uint8Array | null;
30
- event: Event;
31
- bodyType: Body;
32
- body: FBS_DataProducer_SendNotificationT | SendNotificationT | SendRtcpNotificationT | null;
33
- constructor(handlerId?: string | Uint8Array | null, event?: Event, bodyType?: Body, body?: FBS_DataProducer_SendNotificationT | SendNotificationT | SendRtcpNotificationT | null);
34
- pack(builder: flatbuffers.Builder): flatbuffers.Offset;
35
- }
36
- //# sourceMappingURL=notification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-to-worker/notification.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAyD,iBAAiB,IAAI,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAC3K,OAAO,EAAE,IAAI,EAAgC,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAoB,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAwB,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAGzG,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,IAAG,MAAM,GAAC,IAAI;IACvB,SAAS,CAAC,gBAAgB,EAAC,WAAW,CAAC,QAAQ,GAAE,MAAM,GAAC,UAAU,GAAC,IAAI;IAMvE,KAAK,IAAG,KAAK;IAKb,QAAQ,IAAG,IAAI;IAKf,IAAI,CAAC,CAAC,SAAS,WAAW,CAAC,KAAK,EAAE,GAAG,EAAC,GAAG,GAAE,GAAG,GAAC,IAAI;IAKnD,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,KAAK;IAIxD,MAAM,CAAC,WAAW,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAC,IAAI;IAI7D,MAAM,CAAC,OAAO,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,UAAU,EAAC,WAAW,CAAC,MAAM;IAIzE,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,KAAK,EAAE,QAAQ,EAAC,IAAI,EAAE,UAAU,EAAC,WAAW,CAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IASxK,MAAM,IAAI,aAAa;IAcvB,QAAQ,CAAC,EAAE,EAAE,aAAa,GAAG,IAAI;CAUhC;AAED,qBAAa,aAAc,YAAW,WAAW,CAAC,gBAAgB;IAEzD,SAAS,EAAE,MAAM,GAAC,UAAU,GAAC,IAAI;IACjC,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,kCAAkC,GAAC,iBAAiB,GAAC,qBAAqB,GAAC,IAAI;gBAHrF,SAAS,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW,EACxC,KAAK,GAAE,KAAiC,EACxC,QAAQ,GAAE,IAAgB,EAC1B,IAAI,GAAE,kCAAkC,GAAC,iBAAiB,GAAC,qBAAqB,GAAC,IAAW;IAIrG,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAWpD"}
@@ -1,140 +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.NotificationT = exports.Notification = void 0;
38
- const flatbuffers = __importStar(require("flatbuffers"));
39
- const body_1 = require("../../fbs/notification-to-worker/body");
40
- const event_1 = require("../../fbs/notification-to-worker/event");
41
- class Notification {
42
- bb = null;
43
- bb_pos = 0;
44
- __init(i, bb) {
45
- this.bb_pos = i;
46
- this.bb = bb;
47
- return this;
48
- }
49
- static getRootAsNotification(bb, obj) {
50
- return (obj || new Notification()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
51
- }
52
- static getSizePrefixedRootAsNotification(bb, obj) {
53
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
54
- return (obj || new Notification()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
55
- }
56
- handlerId(optionalEncoding) {
57
- const offset = this.bb.__offset(this.bb_pos, 4);
58
- return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
59
- }
60
- event() {
61
- const offset = this.bb.__offset(this.bb_pos, 6);
62
- return offset ? this.bb.readUint8(this.bb_pos + offset) : event_1.Event.TRANSPORT_SEND_RTCP;
63
- }
64
- bodyType() {
65
- const offset = this.bb.__offset(this.bb_pos, 8);
66
- return offset ? this.bb.readUint8(this.bb_pos + offset) : body_1.Body.NONE;
67
- }
68
- body(obj) {
69
- const offset = this.bb.__offset(this.bb_pos, 10);
70
- return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
71
- }
72
- static startNotification(builder) {
73
- builder.startObject(4);
74
- }
75
- static addHandlerId(builder, handlerIdOffset) {
76
- builder.addFieldOffset(0, handlerIdOffset, 0);
77
- }
78
- static addEvent(builder, event) {
79
- builder.addFieldInt8(1, event, event_1.Event.TRANSPORT_SEND_RTCP);
80
- }
81
- static addBodyType(builder, bodyType) {
82
- builder.addFieldInt8(2, bodyType, body_1.Body.NONE);
83
- }
84
- static addBody(builder, bodyOffset) {
85
- builder.addFieldOffset(3, bodyOffset, 0);
86
- }
87
- static endNotification(builder) {
88
- const offset = builder.endObject();
89
- builder.requiredField(offset, 4); // handler_id
90
- return offset;
91
- }
92
- static createNotification(builder, handlerIdOffset, event, bodyType, bodyOffset) {
93
- Notification.startNotification(builder);
94
- Notification.addHandlerId(builder, handlerIdOffset);
95
- Notification.addEvent(builder, event);
96
- Notification.addBodyType(builder, bodyType);
97
- Notification.addBody(builder, bodyOffset);
98
- return Notification.endNotification(builder);
99
- }
100
- unpack() {
101
- return new NotificationT(this.handlerId(), this.event(), this.bodyType(), (() => {
102
- const temp = (0, body_1.unionToBody)(this.bodyType(), this.body.bind(this));
103
- if (temp === null) {
104
- return null;
105
- }
106
- return temp.unpack();
107
- })());
108
- }
109
- unpackTo(_o) {
110
- _o.handlerId = this.handlerId();
111
- _o.event = this.event();
112
- _o.bodyType = this.bodyType();
113
- _o.body = (() => {
114
- const temp = (0, body_1.unionToBody)(this.bodyType(), this.body.bind(this));
115
- if (temp === null) {
116
- return null;
117
- }
118
- return temp.unpack();
119
- })();
120
- }
121
- }
122
- exports.Notification = Notification;
123
- class NotificationT {
124
- handlerId;
125
- event;
126
- bodyType;
127
- body;
128
- constructor(handlerId = null, event = event_1.Event.TRANSPORT_SEND_RTCP, bodyType = body_1.Body.NONE, body = null) {
129
- this.handlerId = handlerId;
130
- this.event = event;
131
- this.bodyType = bodyType;
132
- this.body = body;
133
- }
134
- pack(builder) {
135
- const handlerId = (this.handlerId !== null ? builder.createString(this.handlerId) : 0);
136
- const body = builder.createObjectOffset(this.body);
137
- return Notification.createNotification(builder, handlerId, this.event, this.bodyType, body);
138
- }
139
- }
140
- exports.NotificationT = NotificationT;
@@ -1,4 +0,0 @@
1
- export { Body } from './notification-to-worker/body';
2
- export { Event } from './notification-to-worker/event';
3
- export { Notification, NotificationT } from './notification-to-worker/notification';
4
- //# sourceMappingURL=notification-to-worker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification-to-worker.d.ts","sourceRoot":"","sources":["../../src/fbs/notification-to-worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- // automatically generated by the FlatBuffers compiler, do not modify
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.NotificationT = exports.Notification = exports.Event = exports.Body = void 0;
5
- var body_1 = require("./notification-to-worker/body");
6
- Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_1.Body; } });
7
- var event_1 = require("./notification-to-worker/event");
8
- Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return event_1.Event; } });
9
- var notification_1 = require("./notification-to-worker/notification");
10
- Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return notification_1.Notification; } });
11
- Object.defineProperty(exports, "NotificationT", { enumerable: true, get: function () { return notification_1.NotificationT; } });
@@ -1,24 +0,0 @@
1
- import * as flatbuffers from 'flatbuffers';
2
- export declare class NumSctpStreams implements flatbuffers.IUnpackableObject<NumSctpStreamsT> {
3
- bb: flatbuffers.ByteBuffer | null;
4
- bb_pos: number;
5
- __init(i: number, bb: flatbuffers.ByteBuffer): NumSctpStreams;
6
- static getRootAsNumSctpStreams(bb: flatbuffers.ByteBuffer, obj?: NumSctpStreams): NumSctpStreams;
7
- static getSizePrefixedRootAsNumSctpStreams(bb: flatbuffers.ByteBuffer, obj?: NumSctpStreams): NumSctpStreams;
8
- os(): number;
9
- mis(): number;
10
- static startNumSctpStreams(builder: flatbuffers.Builder): void;
11
- static addOs(builder: flatbuffers.Builder, os: number): void;
12
- static addMis(builder: flatbuffers.Builder, mis: number): void;
13
- static endNumSctpStreams(builder: flatbuffers.Builder): flatbuffers.Offset;
14
- static createNumSctpStreams(builder: flatbuffers.Builder, os: number, mis: number): flatbuffers.Offset;
15
- unpack(): NumSctpStreamsT;
16
- unpackTo(_o: NumSctpStreamsT): void;
17
- }
18
- export declare class NumSctpStreamsT implements flatbuffers.IGeneratedObject {
19
- os: number;
20
- mis: number;
21
- constructor(os?: number, mis?: number);
22
- pack(builder: flatbuffers.Builder): flatbuffers.Offset;
23
- }
24
- //# sourceMappingURL=num-sctp-streams.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"num-sctp-streams.d.ts","sourceRoot":"","sources":["../../../src/fbs/sctp-parameters/num-sctp-streams.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;IAI7F,MAAM,CAAC,mCAAmC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,cAAc,GAAE,cAAc;IAKzG,EAAE,IAAG,MAAM;IAKX,GAAG,IAAG,MAAM;IAKZ,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAItD,MAAM,CAAC,KAAK,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,EAAE,EAAC,MAAM;IAInD,MAAM,CAAC,MAAM,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,GAAG,EAAC,MAAM;IAIrD,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAKxE,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,EAAE,EAAC,MAAM,EAAE,GAAG,EAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IAOlG,MAAM,IAAI,eAAe;IAQzB,QAAQ,CAAC,EAAE,EAAE,eAAe,GAAG,IAAI;CAIlC;AAED,qBAAa,eAAgB,YAAW,WAAW,CAAC,gBAAgB;IAE3D,EAAE,EAAE,MAAM;IACV,GAAG,EAAE,MAAM;gBADX,EAAE,GAAE,MAAa,EACjB,GAAG,GAAE,MAAa;IAI3B,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAMpD"}
@@ -1,102 +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.NumSctpStreamsT = exports.NumSctpStreams = 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 NumSctpStreams {
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 getRootAsNumSctpStreams(bb, obj) {
49
- return (obj || new NumSctpStreams()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
50
- }
51
- static getSizePrefixedRootAsNumSctpStreams(bb, obj) {
52
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
53
- return (obj || new NumSctpStreams()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
54
- }
55
- os() {
56
- const offset = this.bb.__offset(this.bb_pos, 4);
57
- return offset ? this.bb.readUint16(this.bb_pos + offset) : 1024;
58
- }
59
- mis() {
60
- const offset = this.bb.__offset(this.bb_pos, 6);
61
- return offset ? this.bb.readUint16(this.bb_pos + offset) : 1024;
62
- }
63
- static startNumSctpStreams(builder) {
64
- builder.startObject(2);
65
- }
66
- static addOs(builder, os) {
67
- builder.addFieldInt16(0, os, 1024);
68
- }
69
- static addMis(builder, mis) {
70
- builder.addFieldInt16(1, mis, 1024);
71
- }
72
- static endNumSctpStreams(builder) {
73
- const offset = builder.endObject();
74
- return offset;
75
- }
76
- static createNumSctpStreams(builder, os, mis) {
77
- NumSctpStreams.startNumSctpStreams(builder);
78
- NumSctpStreams.addOs(builder, os);
79
- NumSctpStreams.addMis(builder, mis);
80
- return NumSctpStreams.endNumSctpStreams(builder);
81
- }
82
- unpack() {
83
- return new NumSctpStreamsT(this.os(), this.mis());
84
- }
85
- unpackTo(_o) {
86
- _o.os = this.os();
87
- _o.mis = this.mis();
88
- }
89
- }
90
- exports.NumSctpStreams = NumSctpStreams;
91
- class NumSctpStreamsT {
92
- os;
93
- mis;
94
- constructor(os = 1024, mis = 1024) {
95
- this.os = os;
96
- this.mis = mis;
97
- }
98
- pack(builder) {
99
- return NumSctpStreams.createNumSctpStreams(builder, this.os, this.mis);
100
- }
101
- }
102
- exports.NumSctpStreamsT = NumSctpStreamsT;
@@ -1,21 +0,0 @@
1
- import * as flatbuffers from 'flatbuffers';
2
- export declare class FirTraceInfo implements flatbuffers.IUnpackableObject<FirTraceInfoT> {
3
- bb: flatbuffers.ByteBuffer | null;
4
- bb_pos: number;
5
- __init(i: number, bb: flatbuffers.ByteBuffer): FirTraceInfo;
6
- static getRootAsFirTraceInfo(bb: flatbuffers.ByteBuffer, obj?: FirTraceInfo): FirTraceInfo;
7
- static getSizePrefixedRootAsFirTraceInfo(bb: flatbuffers.ByteBuffer, obj?: FirTraceInfo): FirTraceInfo;
8
- ssrc(): number;
9
- static startFirTraceInfo(builder: flatbuffers.Builder): void;
10
- static addSsrc(builder: flatbuffers.Builder, ssrc: number): void;
11
- static endFirTraceInfo(builder: flatbuffers.Builder): flatbuffers.Offset;
12
- static createFirTraceInfo(builder: flatbuffers.Builder, ssrc: number): flatbuffers.Offset;
13
- unpack(): FirTraceInfoT;
14
- unpackTo(_o: FirTraceInfoT): void;
15
- }
16
- export declare class FirTraceInfoT implements flatbuffers.IGeneratedObject {
17
- ssrc: number;
18
- constructor(ssrc?: number);
19
- pack(builder: flatbuffers.Builder): flatbuffers.Offset;
20
- }
21
- //# sourceMappingURL=fir-trace-info.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fir-trace-info.d.ts","sourceRoot":"","sources":["../../../src/fbs/trace-events/fir-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"}
@@ -1,90 +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.FirTraceInfoT = exports.FirTraceInfo = void 0;
38
- const flatbuffers = __importStar(require("flatbuffers"));
39
- class FirTraceInfo {
40
- bb = null;
41
- bb_pos = 0;
42
- __init(i, bb) {
43
- this.bb_pos = i;
44
- this.bb = bb;
45
- return this;
46
- }
47
- static getRootAsFirTraceInfo(bb, obj) {
48
- return (obj || new FirTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
49
- }
50
- static getSizePrefixedRootAsFirTraceInfo(bb, obj) {
51
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
52
- return (obj || new FirTraceInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
53
- }
54
- ssrc() {
55
- const offset = this.bb.__offset(this.bb_pos, 4);
56
- return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
57
- }
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) {
65
- const offset = builder.endObject();
66
- return offset;
67
- }
68
- static createFirTraceInfo(builder, ssrc) {
69
- FirTraceInfo.startFirTraceInfo(builder);
70
- FirTraceInfo.addSsrc(builder, ssrc);
71
- return FirTraceInfo.endFirTraceInfo(builder);
72
- }
73
- unpack() {
74
- return new FirTraceInfoT(this.ssrc());
75
- }
76
- unpackTo(_o) {
77
- _o.ssrc = this.ssrc();
78
- }
79
- }
80
- exports.FirTraceInfo = FirTraceInfo;
81
- class FirTraceInfoT {
82
- ssrc;
83
- constructor(ssrc = 0) {
84
- this.ssrc = ssrc;
85
- }
86
- pack(builder) {
87
- return FirTraceInfo.createFirTraceInfo(builder, this.ssrc);
88
- }
89
- }
90
- exports.FirTraceInfoT = FirTraceInfoT;
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,104 +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.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;