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,122 +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.MessageT = exports.Message = void 0;
38
- const flatbuffers = __importStar(require("flatbuffers"));
39
- const body_1 = require("../../fbs/message-to-worker/body");
40
- class Message {
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 getRootAsMessage(bb, obj) {
49
- return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
50
- }
51
- static getSizePrefixedRootAsMessage(bb, obj) {
52
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
53
- return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
54
- }
55
- dataType() {
56
- const offset = this.bb.__offset(this.bb_pos, 4);
57
- return offset ? this.bb.readUint8(this.bb_pos + offset) : body_1.Body.NONE;
58
- }
59
- data(obj) {
60
- const offset = this.bb.__offset(this.bb_pos, 6);
61
- return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
62
- }
63
- static startMessage(builder) {
64
- builder.startObject(2);
65
- }
66
- static addDataType(builder, dataType) {
67
- builder.addFieldInt8(0, dataType, body_1.Body.NONE);
68
- }
69
- static addData(builder, dataOffset) {
70
- builder.addFieldOffset(1, dataOffset, 0);
71
- }
72
- static endMessage(builder) {
73
- const offset = builder.endObject();
74
- builder.requiredField(offset, 6); // data
75
- return offset;
76
- }
77
- static finishMessageBuffer(builder, offset) {
78
- builder.finish(offset);
79
- }
80
- static finishSizePrefixedMessageBuffer(builder, offset) {
81
- builder.finish(offset, undefined, true);
82
- }
83
- static createMessage(builder, dataType, dataOffset) {
84
- Message.startMessage(builder);
85
- Message.addDataType(builder, dataType);
86
- Message.addData(builder, dataOffset);
87
- return Message.endMessage(builder);
88
- }
89
- unpack() {
90
- return new MessageT(this.dataType(), (() => {
91
- const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
92
- if (temp === null) {
93
- return null;
94
- }
95
- return temp.unpack();
96
- })());
97
- }
98
- unpackTo(_o) {
99
- _o.dataType = this.dataType();
100
- _o.data = (() => {
101
- const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
102
- if (temp === null) {
103
- return null;
104
- }
105
- return temp.unpack();
106
- })();
107
- }
108
- }
109
- exports.Message = Message;
110
- class MessageT {
111
- dataType;
112
- data;
113
- constructor(dataType = body_1.Body.NONE, data = null) {
114
- this.dataType = dataType;
115
- this.data = data;
116
- }
117
- pack(builder) {
118
- const data = builder.createObjectOffset(this.data);
119
- return Message.createMessage(builder, this.dataType, data);
120
- }
121
- }
122
- exports.MessageT = MessageT;
@@ -1,3 +0,0 @@
1
- export { Body } from './message-to-worker/body';
2
- export { Message, MessageT } from './message-to-worker/message';
3
- //# sourceMappingURL=message-to-worker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message-to-worker.d.ts","sourceRoot":"","sources":["../../src/fbs/message-to-worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- // automatically generated by the FlatBuffers compiler, do not modify
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MessageT = exports.Message = exports.Body = void 0;
5
- var body_1 = require("./message-to-worker/body");
6
- Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_1.Body; } });
7
- var message_1 = require("./message-to-worker/message");
8
- Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return message_1.Message; } });
9
- Object.defineProperty(exports, "MessageT", { enumerable: true, get: function () { return message_1.MessageT; } });
@@ -1,44 +0,0 @@
1
- import { DominantSpeakerNotification } from '../../fbs/active-speaker-observer/dominant-speaker-notification';
2
- import { VolumesNotification } from '../../fbs/audio-level-observer/volumes-notification';
3
- import { LayersChangeNotification } from '../../fbs/consumer/layers-change-notification';
4
- import { RtpNotification } from '../../fbs/consumer/rtp-notification';
5
- import { ScoreNotification as FBS_Consumer_ScoreNotification } from '../../fbs/consumer/score-notification';
6
- import { TraceNotification as FBS_Consumer_TraceNotification } from '../../fbs/consumer/trace-notification';
7
- import { BufferedAmountLowNotification } from '../../fbs/data-consumer/buffered-amount-low-notification';
8
- import { MessageNotification } from '../../fbs/data-consumer/message-notification';
9
- import { RtcpNotification } from '../../fbs/direct-transport/rtcp-notification';
10
- import { RtcpTupleNotification } from '../../fbs/plain-transport/rtcp-tuple-notification';
11
- import { TupleNotification } from '../../fbs/plain-transport/tuple-notification';
12
- import { ScoreNotification } from '../../fbs/producer/score-notification';
13
- import { TraceNotification as FBS_Producer_TraceNotification } from '../../fbs/producer/trace-notification';
14
- import { VideoOrientationChangeNotification } from '../../fbs/producer/video-orientation-change-notification';
15
- import { SctpStateChangeNotification } from '../../fbs/transport/sctp-state-change-notification';
16
- import { TraceNotification } from '../../fbs/transport/trace-notification';
17
- import { DtlsStateChangeNotification } from '../../fbs/web-rtc-transport/dtls-state-change-notification';
18
- import { IceSelectedTupleChangeNotification } from '../../fbs/web-rtc-transport/ice-selected-tuple-change-notification';
19
- import { IceStateChangeNotification } from '../../fbs/web-rtc-transport/ice-state-change-notification';
20
- export declare enum Body {
21
- NONE = 0,
22
- Transport_TraceNotification = 1,
23
- Transport_SctpStateChangeNotification = 2,
24
- WebRtcTransport_IceSelectedTupleChangeNotification = 3,
25
- WebRtcTransport_IceStateChangeNotification = 4,
26
- WebRtcTransport_DtlsStateChangeNotification = 5,
27
- PlainTransport_TupleNotification = 6,
28
- PlainTransport_RtcpTupleNotification = 7,
29
- DirectTransport_RtcpNotification = 8,
30
- Producer_ScoreNotification = 9,
31
- Producer_TraceNotification = 10,
32
- Producer_VideoOrientationChangeNotification = 11,
33
- Consumer_LayersChangeNotification = 12,
34
- Consumer_RtpNotification = 13,
35
- Consumer_ScoreNotification = 14,
36
- Consumer_TraceNotification = 15,
37
- DataConsumer_MessageNotification = 16,
38
- DataConsumer_BufferedAmountLowNotification = 17,
39
- ActiveSpeakerObserver_DominantSpeakerNotification = 18,
40
- AudioLevelObserver_VolumesNotification = 19
41
- }
42
- export declare function unionToBody(type: Body, accessor: (obj: BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification) => BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null): BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null;
43
- export declare function unionListToBody(type: Body, accessor: (index: number, obj: BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification) => BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null, index: number): BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null;
44
- //# sourceMappingURL=body.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-from-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAgC,MAAM,iEAAiE,CAAC;AAC5I,OAAO,EAAE,mBAAmB,EAAwB,MAAM,qDAAqD,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAA6B,MAAM,+CAA+C,CAAC;AACpH,OAAO,EAAE,eAAe,EAAoB,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,iBAAiB,IAAI,8BAA8B,EAAyD,MAAM,uCAAuC,CAAC;AACnK,OAAO,EAAE,iBAAiB,IAAI,8BAA8B,EAAyD,MAAM,uCAAuC,CAAC;AACnK,OAAO,EAAE,6BAA6B,EAAkC,MAAM,0DAA0D,CAAC;AACzI,OAAO,EAAE,mBAAmB,EAAwB,MAAM,8CAA8C,CAAC;AACzG,OAAO,EAAE,gBAAgB,EAAqB,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAA0B,MAAM,mDAAmD,CAAC;AAClH,OAAO,EAAE,iBAAiB,EAAsB,MAAM,8CAA8C,CAAC;AACrG,OAAO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ACl+B,KAAK,EAAE,MAAM,GACZ,6BAA6B,GAAC,2BAA2B,GAAC,2BAA2B,GAAC,8BAA8B,GAAC,8BAA8B,GAAC,8BAA8B,GAAC,kCAAkC,GAAC,0BAA0B,GAAC,wBAAwB,GAAC,mBAAmB,GAAC,gBAAgB,GAAC,qBAAqB,GAAC,eAAe,GAAC,iBAAiB,GAAC,2BAA2B,GAAC,iBAAiB,GAAC,iBAAiB,GAAC,kCAAkC,GAAC,mBAAmB,GAAC,IAAI,CAwBpe"}
@@ -1,98 +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 dominant_speaker_notification_1 = require("../../fbs/active-speaker-observer/dominant-speaker-notification");
8
- const volumes_notification_1 = require("../../fbs/audio-level-observer/volumes-notification");
9
- const layers_change_notification_1 = require("../../fbs/consumer/layers-change-notification");
10
- const rtp_notification_1 = require("../../fbs/consumer/rtp-notification");
11
- const score_notification_1 = require("../../fbs/consumer/score-notification");
12
- const trace_notification_1 = require("../../fbs/consumer/trace-notification");
13
- const buffered_amount_low_notification_1 = require("../../fbs/data-consumer/buffered-amount-low-notification");
14
- const message_notification_1 = require("../../fbs/data-consumer/message-notification");
15
- const rtcp_notification_1 = require("../../fbs/direct-transport/rtcp-notification");
16
- const rtcp_tuple_notification_1 = require("../../fbs/plain-transport/rtcp-tuple-notification");
17
- const tuple_notification_1 = require("../../fbs/plain-transport/tuple-notification");
18
- const score_notification_2 = require("../../fbs/producer/score-notification");
19
- const trace_notification_2 = require("../../fbs/producer/trace-notification");
20
- const video_orientation_change_notification_1 = require("../../fbs/producer/video-orientation-change-notification");
21
- const sctp_state_change_notification_1 = require("../../fbs/transport/sctp-state-change-notification");
22
- const trace_notification_3 = require("../../fbs/transport/trace-notification");
23
- const dtls_state_change_notification_1 = require("../../fbs/web-rtc-transport/dtls-state-change-notification");
24
- const ice_selected_tuple_change_notification_1 = require("../../fbs/web-rtc-transport/ice-selected-tuple-change-notification");
25
- const ice_state_change_notification_1 = require("../../fbs/web-rtc-transport/ice-state-change-notification");
26
- var Body;
27
- (function (Body) {
28
- Body[Body["NONE"] = 0] = "NONE";
29
- Body[Body["Transport_TraceNotification"] = 1] = "Transport_TraceNotification";
30
- Body[Body["Transport_SctpStateChangeNotification"] = 2] = "Transport_SctpStateChangeNotification";
31
- Body[Body["WebRtcTransport_IceSelectedTupleChangeNotification"] = 3] = "WebRtcTransport_IceSelectedTupleChangeNotification";
32
- Body[Body["WebRtcTransport_IceStateChangeNotification"] = 4] = "WebRtcTransport_IceStateChangeNotification";
33
- Body[Body["WebRtcTransport_DtlsStateChangeNotification"] = 5] = "WebRtcTransport_DtlsStateChangeNotification";
34
- Body[Body["PlainTransport_TupleNotification"] = 6] = "PlainTransport_TupleNotification";
35
- Body[Body["PlainTransport_RtcpTupleNotification"] = 7] = "PlainTransport_RtcpTupleNotification";
36
- Body[Body["DirectTransport_RtcpNotification"] = 8] = "DirectTransport_RtcpNotification";
37
- Body[Body["Producer_ScoreNotification"] = 9] = "Producer_ScoreNotification";
38
- Body[Body["Producer_TraceNotification"] = 10] = "Producer_TraceNotification";
39
- Body[Body["Producer_VideoOrientationChangeNotification"] = 11] = "Producer_VideoOrientationChangeNotification";
40
- Body[Body["Consumer_LayersChangeNotification"] = 12] = "Consumer_LayersChangeNotification";
41
- Body[Body["Consumer_RtpNotification"] = 13] = "Consumer_RtpNotification";
42
- Body[Body["Consumer_ScoreNotification"] = 14] = "Consumer_ScoreNotification";
43
- Body[Body["Consumer_TraceNotification"] = 15] = "Consumer_TraceNotification";
44
- Body[Body["DataConsumer_MessageNotification"] = 16] = "DataConsumer_MessageNotification";
45
- Body[Body["DataConsumer_BufferedAmountLowNotification"] = 17] = "DataConsumer_BufferedAmountLowNotification";
46
- Body[Body["ActiveSpeakerObserver_DominantSpeakerNotification"] = 18] = "ActiveSpeakerObserver_DominantSpeakerNotification";
47
- Body[Body["AudioLevelObserver_VolumesNotification"] = 19] = "AudioLevelObserver_VolumesNotification";
48
- })(Body || (exports.Body = Body = {}));
49
- function unionToBody(type, accessor) {
50
- switch (Body[type]) {
51
- case 'NONE': return null;
52
- case 'Transport_TraceNotification': return accessor(new trace_notification_3.TraceNotification());
53
- case 'Transport_SctpStateChangeNotification': return accessor(new sctp_state_change_notification_1.SctpStateChangeNotification());
54
- case 'WebRtcTransport_IceSelectedTupleChangeNotification': return accessor(new ice_selected_tuple_change_notification_1.IceSelectedTupleChangeNotification());
55
- case 'WebRtcTransport_IceStateChangeNotification': return accessor(new ice_state_change_notification_1.IceStateChangeNotification());
56
- case 'WebRtcTransport_DtlsStateChangeNotification': return accessor(new dtls_state_change_notification_1.DtlsStateChangeNotification());
57
- case 'PlainTransport_TupleNotification': return accessor(new tuple_notification_1.TupleNotification());
58
- case 'PlainTransport_RtcpTupleNotification': return accessor(new rtcp_tuple_notification_1.RtcpTupleNotification());
59
- case 'DirectTransport_RtcpNotification': return accessor(new rtcp_notification_1.RtcpNotification());
60
- case 'Producer_ScoreNotification': return accessor(new score_notification_2.ScoreNotification());
61
- case 'Producer_TraceNotification': return accessor(new trace_notification_2.TraceNotification());
62
- case 'Producer_VideoOrientationChangeNotification': return accessor(new video_orientation_change_notification_1.VideoOrientationChangeNotification());
63
- case 'Consumer_LayersChangeNotification': return accessor(new layers_change_notification_1.LayersChangeNotification());
64
- case 'Consumer_RtpNotification': return accessor(new rtp_notification_1.RtpNotification());
65
- case 'Consumer_ScoreNotification': return accessor(new score_notification_1.ScoreNotification());
66
- case 'Consumer_TraceNotification': return accessor(new trace_notification_1.TraceNotification());
67
- case 'DataConsumer_MessageNotification': return accessor(new message_notification_1.MessageNotification());
68
- case 'DataConsumer_BufferedAmountLowNotification': return accessor(new buffered_amount_low_notification_1.BufferedAmountLowNotification());
69
- case 'ActiveSpeakerObserver_DominantSpeakerNotification': return accessor(new dominant_speaker_notification_1.DominantSpeakerNotification());
70
- case 'AudioLevelObserver_VolumesNotification': return accessor(new volumes_notification_1.VolumesNotification());
71
- default: return null;
72
- }
73
- }
74
- function unionListToBody(type, accessor, index) {
75
- switch (Body[type]) {
76
- case 'NONE': return null;
77
- case 'Transport_TraceNotification': return accessor(index, new trace_notification_3.TraceNotification());
78
- case 'Transport_SctpStateChangeNotification': return accessor(index, new sctp_state_change_notification_1.SctpStateChangeNotification());
79
- case 'WebRtcTransport_IceSelectedTupleChangeNotification': return accessor(index, new ice_selected_tuple_change_notification_1.IceSelectedTupleChangeNotification());
80
- case 'WebRtcTransport_IceStateChangeNotification': return accessor(index, new ice_state_change_notification_1.IceStateChangeNotification());
81
- case 'WebRtcTransport_DtlsStateChangeNotification': return accessor(index, new dtls_state_change_notification_1.DtlsStateChangeNotification());
82
- case 'PlainTransport_TupleNotification': return accessor(index, new tuple_notification_1.TupleNotification());
83
- case 'PlainTransport_RtcpTupleNotification': return accessor(index, new rtcp_tuple_notification_1.RtcpTupleNotification());
84
- case 'DirectTransport_RtcpNotification': return accessor(index, new rtcp_notification_1.RtcpNotification());
85
- case 'Producer_ScoreNotification': return accessor(index, new score_notification_2.ScoreNotification());
86
- case 'Producer_TraceNotification': return accessor(index, new trace_notification_2.TraceNotification());
87
- case 'Producer_VideoOrientationChangeNotification': return accessor(index, new video_orientation_change_notification_1.VideoOrientationChangeNotification());
88
- case 'Consumer_LayersChangeNotification': return accessor(index, new layers_change_notification_1.LayersChangeNotification());
89
- case 'Consumer_RtpNotification': return accessor(index, new rtp_notification_1.RtpNotification());
90
- case 'Consumer_ScoreNotification': return accessor(index, new score_notification_1.ScoreNotification());
91
- case 'Consumer_TraceNotification': return accessor(index, new trace_notification_1.TraceNotification());
92
- case 'DataConsumer_MessageNotification': return accessor(index, new message_notification_1.MessageNotification());
93
- case 'DataConsumer_BufferedAmountLowNotification': return accessor(index, new buffered_amount_low_notification_1.BufferedAmountLowNotification());
94
- case 'ActiveSpeakerObserver_DominantSpeakerNotification': return accessor(index, new dominant_speaker_notification_1.DominantSpeakerNotification());
95
- case 'AudioLevelObserver_VolumesNotification': return accessor(index, new volumes_notification_1.VolumesNotification());
96
- default: return null;
97
- }
98
- }
@@ -1,31 +0,0 @@
1
- export declare enum Event {
2
- WORKER_RUNNING = 0,
3
- TRANSPORT_SCTP_STATE_CHANGE = 1,
4
- TRANSPORT_TRACE = 2,
5
- WEBRTCTRANSPORT_ICE_SELECTED_TUPLE_CHANGE = 3,
6
- WEBRTCTRANSPORT_ICE_STATE_CHANGE = 4,
7
- WEBRTCTRANSPORT_DTLS_STATE_CHANGE = 5,
8
- PLAINTRANSPORT_TUPLE = 6,
9
- PLAINTRANSPORT_RTCP_TUPLE = 7,
10
- DIRECTTRANSPORT_RTCP = 8,
11
- PRODUCER_SCORE = 9,
12
- PRODUCER_TRACE = 10,
13
- PRODUCER_VIDEO_ORIENTATION_CHANGE = 11,
14
- CONSUMER_PRODUCER_PAUSE = 12,
15
- CONSUMER_PRODUCER_RESUME = 13,
16
- CONSUMER_PRODUCER_CLOSE = 14,
17
- CONSUMER_LAYERS_CHANGE = 15,
18
- CONSUMER_RTP = 16,
19
- CONSUMER_SCORE = 17,
20
- CONSUMER_TRACE = 18,
21
- DATACONSUMER_BUFFERED_AMOUNT_LOW = 19,
22
- DATACONSUMER_SCTP_SENDBUFFER_FULL = 20,
23
- DATACONSUMER_DATAPRODUCER_PAUSE = 21,
24
- DATACONSUMER_DATAPRODUCER_RESUME = 22,
25
- DATACONSUMER_DATAPRODUCER_CLOSE = 23,
26
- DATACONSUMER_MESSAGE = 24,
27
- ACTIVESPEAKEROBSERVER_DOMINANT_SPEAKER = 25,
28
- AUDIOLEVELOBSERVER_SILENCE = 26,
29
- AUDIOLEVELOBSERVER_VOLUMES = 27
30
- }
31
- //# sourceMappingURL=event.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-from-worker/event.ts"],"names":[],"mappings":"AAEA,oBAAY,KAAK;IACf,cAAc,IAAI;IAClB,2BAA2B,IAAI;IAC/B,eAAe,IAAI;IACnB,yCAAyC,IAAI;IAC7C,gCAAgC,IAAI;IACpC,iCAAiC,IAAI;IACrC,oBAAoB,IAAI;IACxB,yBAAyB,IAAI;IAC7B,oBAAoB,IAAI;IACxB,cAAc,IAAI;IAClB,cAAc,KAAK;IACnB,iCAAiC,KAAK;IACtC,uBAAuB,KAAK;IAC5B,wBAAwB,KAAK;IAC7B,uBAAuB,KAAK;IAC5B,sBAAsB,KAAK;IAC3B,YAAY,KAAK;IACjB,cAAc,KAAK;IACnB,cAAc,KAAK;IACnB,gCAAgC,KAAK;IACrC,iCAAiC,KAAK;IACtC,+BAA+B,KAAK;IACpC,gCAAgC,KAAK;IACrC,+BAA+B,KAAK;IACpC,oBAAoB,KAAK;IACzB,sCAAsC,KAAK;IAC3C,0BAA0B,KAAK;IAC/B,0BAA0B,KAAK;CAChC"}
@@ -1,35 +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["WORKER_RUNNING"] = 0] = "WORKER_RUNNING";
8
- Event[Event["TRANSPORT_SCTP_STATE_CHANGE"] = 1] = "TRANSPORT_SCTP_STATE_CHANGE";
9
- Event[Event["TRANSPORT_TRACE"] = 2] = "TRANSPORT_TRACE";
10
- Event[Event["WEBRTCTRANSPORT_ICE_SELECTED_TUPLE_CHANGE"] = 3] = "WEBRTCTRANSPORT_ICE_SELECTED_TUPLE_CHANGE";
11
- Event[Event["WEBRTCTRANSPORT_ICE_STATE_CHANGE"] = 4] = "WEBRTCTRANSPORT_ICE_STATE_CHANGE";
12
- Event[Event["WEBRTCTRANSPORT_DTLS_STATE_CHANGE"] = 5] = "WEBRTCTRANSPORT_DTLS_STATE_CHANGE";
13
- Event[Event["PLAINTRANSPORT_TUPLE"] = 6] = "PLAINTRANSPORT_TUPLE";
14
- Event[Event["PLAINTRANSPORT_RTCP_TUPLE"] = 7] = "PLAINTRANSPORT_RTCP_TUPLE";
15
- Event[Event["DIRECTTRANSPORT_RTCP"] = 8] = "DIRECTTRANSPORT_RTCP";
16
- Event[Event["PRODUCER_SCORE"] = 9] = "PRODUCER_SCORE";
17
- Event[Event["PRODUCER_TRACE"] = 10] = "PRODUCER_TRACE";
18
- Event[Event["PRODUCER_VIDEO_ORIENTATION_CHANGE"] = 11] = "PRODUCER_VIDEO_ORIENTATION_CHANGE";
19
- Event[Event["CONSUMER_PRODUCER_PAUSE"] = 12] = "CONSUMER_PRODUCER_PAUSE";
20
- Event[Event["CONSUMER_PRODUCER_RESUME"] = 13] = "CONSUMER_PRODUCER_RESUME";
21
- Event[Event["CONSUMER_PRODUCER_CLOSE"] = 14] = "CONSUMER_PRODUCER_CLOSE";
22
- Event[Event["CONSUMER_LAYERS_CHANGE"] = 15] = "CONSUMER_LAYERS_CHANGE";
23
- Event[Event["CONSUMER_RTP"] = 16] = "CONSUMER_RTP";
24
- Event[Event["CONSUMER_SCORE"] = 17] = "CONSUMER_SCORE";
25
- Event[Event["CONSUMER_TRACE"] = 18] = "CONSUMER_TRACE";
26
- Event[Event["DATACONSUMER_BUFFERED_AMOUNT_LOW"] = 19] = "DATACONSUMER_BUFFERED_AMOUNT_LOW";
27
- Event[Event["DATACONSUMER_SCTP_SENDBUFFER_FULL"] = 20] = "DATACONSUMER_SCTP_SENDBUFFER_FULL";
28
- Event[Event["DATACONSUMER_DATAPRODUCER_PAUSE"] = 21] = "DATACONSUMER_DATAPRODUCER_PAUSE";
29
- Event[Event["DATACONSUMER_DATAPRODUCER_RESUME"] = 22] = "DATACONSUMER_DATAPRODUCER_RESUME";
30
- Event[Event["DATACONSUMER_DATAPRODUCER_CLOSE"] = 23] = "DATACONSUMER_DATAPRODUCER_CLOSE";
31
- Event[Event["DATACONSUMER_MESSAGE"] = 24] = "DATACONSUMER_MESSAGE";
32
- Event[Event["ACTIVESPEAKEROBSERVER_DOMINANT_SPEAKER"] = 25] = "ACTIVESPEAKEROBSERVER_DOMINANT_SPEAKER";
33
- Event[Event["AUDIOLEVELOBSERVER_SILENCE"] = 26] = "AUDIOLEVELOBSERVER_SILENCE";
34
- Event[Event["AUDIOLEVELOBSERVER_VOLUMES"] = 27] = "AUDIOLEVELOBSERVER_VOLUMES";
35
- })(Event || (exports.Event = Event = {}));
@@ -1,52 +0,0 @@
1
- import * as flatbuffers from 'flatbuffers';
2
- import { DominantSpeakerNotificationT } from '../../fbs/active-speaker-observer/dominant-speaker-notification';
3
- import { VolumesNotificationT } from '../../fbs/audio-level-observer/volumes-notification';
4
- import { LayersChangeNotificationT } from '../../fbs/consumer/layers-change-notification';
5
- import { RtpNotificationT } from '../../fbs/consumer/rtp-notification';
6
- import { ScoreNotificationT as FBS_Consumer_ScoreNotificationT } from '../../fbs/consumer/score-notification';
7
- import { TraceNotificationT as FBS_Consumer_TraceNotificationT } from '../../fbs/consumer/trace-notification';
8
- import { BufferedAmountLowNotificationT } from '../../fbs/data-consumer/buffered-amount-low-notification';
9
- import { MessageNotificationT } from '../../fbs/data-consumer/message-notification';
10
- import { RtcpNotificationT } from '../../fbs/direct-transport/rtcp-notification';
11
- import { Body } from '../../fbs/notification-from-worker/body';
12
- import { Event } from '../../fbs/notification-from-worker/event';
13
- import { RtcpTupleNotificationT } from '../../fbs/plain-transport/rtcp-tuple-notification';
14
- import { TupleNotificationT } from '../../fbs/plain-transport/tuple-notification';
15
- import { ScoreNotificationT } from '../../fbs/producer/score-notification';
16
- import { TraceNotificationT as FBS_Producer_TraceNotificationT } from '../../fbs/producer/trace-notification';
17
- import { VideoOrientationChangeNotificationT } from '../../fbs/producer/video-orientation-change-notification';
18
- import { SctpStateChangeNotificationT } from '../../fbs/transport/sctp-state-change-notification';
19
- import { TraceNotificationT } from '../../fbs/transport/trace-notification';
20
- import { DtlsStateChangeNotificationT } from '../../fbs/web-rtc-transport/dtls-state-change-notification';
21
- import { IceSelectedTupleChangeNotificationT } from '../../fbs/web-rtc-transport/ice-selected-tuple-change-notification';
22
- import { IceStateChangeNotificationT } from '../../fbs/web-rtc-transport/ice-state-change-notification';
23
- export declare class Notification implements flatbuffers.IUnpackableObject<NotificationT> {
24
- bb: flatbuffers.ByteBuffer | null;
25
- bb_pos: number;
26
- __init(i: number, bb: flatbuffers.ByteBuffer): Notification;
27
- static getRootAsNotification(bb: flatbuffers.ByteBuffer, obj?: Notification): Notification;
28
- static getSizePrefixedRootAsNotification(bb: flatbuffers.ByteBuffer, obj?: Notification): Notification;
29
- handlerId(): string | null;
30
- handlerId(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
31
- event(): Event;
32
- bodyType(): Body;
33
- body<T extends flatbuffers.Table>(obj: any): any | null;
34
- static startNotification(builder: flatbuffers.Builder): void;
35
- static addHandlerId(builder: flatbuffers.Builder, handlerIdOffset: flatbuffers.Offset): void;
36
- static addEvent(builder: flatbuffers.Builder, event: Event): void;
37
- static addBodyType(builder: flatbuffers.Builder, bodyType: Body): void;
38
- static addBody(builder: flatbuffers.Builder, bodyOffset: flatbuffers.Offset): void;
39
- static endNotification(builder: flatbuffers.Builder): flatbuffers.Offset;
40
- static createNotification(builder: flatbuffers.Builder, handlerIdOffset: flatbuffers.Offset, event: Event, bodyType: Body, bodyOffset: flatbuffers.Offset): flatbuffers.Offset;
41
- unpack(): NotificationT;
42
- unpackTo(_o: NotificationT): void;
43
- }
44
- export declare class NotificationT implements flatbuffers.IGeneratedObject {
45
- handlerId: string | Uint8Array | null;
46
- event: Event;
47
- bodyType: Body;
48
- body: BufferedAmountLowNotificationT | DominantSpeakerNotificationT | DtlsStateChangeNotificationT | FBS_Consumer_ScoreNotificationT | FBS_Consumer_TraceNotificationT | FBS_Producer_TraceNotificationT | IceSelectedTupleChangeNotificationT | IceStateChangeNotificationT | LayersChangeNotificationT | MessageNotificationT | RtcpNotificationT | RtcpTupleNotificationT | RtpNotificationT | ScoreNotificationT | SctpStateChangeNotificationT | TraceNotificationT | TupleNotificationT | VideoOrientationChangeNotificationT | VolumesNotificationT | null;
49
- constructor(handlerId?: string | Uint8Array | null, event?: Event, bodyType?: Body, body?: BufferedAmountLowNotificationT | DominantSpeakerNotificationT | DtlsStateChangeNotificationT | FBS_Consumer_ScoreNotificationT | FBS_Consumer_TraceNotificationT | FBS_Producer_TraceNotificationT | IceSelectedTupleChangeNotificationT | IceStateChangeNotificationT | LayersChangeNotificationT | MessageNotificationT | RtcpNotificationT | RtcpTupleNotificationT | RtpNotificationT | ScoreNotificationT | SctpStateChangeNotificationT | TraceNotificationT | TupleNotificationT | VideoOrientationChangeNotificationT | VolumesNotificationT | null);
50
- pack(builder: flatbuffers.Builder): flatbuffers.Offset;
51
- }
52
- //# sourceMappingURL=notification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-from-worker/notification.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAA+B,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC5I,OAAO,EAAuB,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAChH,OAAO,EAA4B,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AACpH,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAuD,kBAAkB,IAAI,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACnK,OAAO,EAAuD,kBAAkB,IAAI,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACnK,OAAO,EAAiC,8BAA8B,EAAE,MAAM,0DAA0D,CAAC;AACzI,OAAO,EAAuB,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACzG,OAAO,EAAoB,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,IAAI,EAAgC,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAA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B,GAAC,4BAA4B,GAAC,kBAAkB,GAAC,kBAAkB,GAAC,mCAAmC,GAAC,oBAAoB,GAAC,IAAI;gBAH3f,SAAS,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW,EACxC,KAAK,GAAE,KAA4B,EACnC,QAAQ,GAAE,IAAgB,EAC1B,IAAI,GAAE,8BAA8B,GAAC,4BAA4B,GAAC,4BAA4B,GAAC,+BAA+B,GAAC,+BAA+B,GAAC,+BAA+B,GAAC,mCAAmC,GAAC,2BAA2B,GAAC,yBAAyB,GAAC,oBAAoB,GAAC,iBAAiB,GAAC,sBAAsB,GAAC,gBAAgB,GAAC,kBAAkB,GAAC,4BAA4B,GAAC,kBAAkB,GAAC,kBAAkB,GAAC,mCAAmC,GAAC,oBAAoB,GAAC,IAAW;IAI3gB,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-from-worker/body");
40
- const event_1 = require("../../fbs/notification-from-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.WORKER_RUNNING;
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.WORKER_RUNNING);
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.WORKER_RUNNING, 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-from-worker/body';
2
- export { Event } from './notification-from-worker/event';
3
- export { Notification, NotificationT } from './notification-from-worker/notification';
4
- //# sourceMappingURL=notification-from-worker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification-from-worker.d.ts","sourceRoot":"","sources":["../../src/fbs/notification-from-worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,yCAAyC,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-from-worker/body");
6
- Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_1.Body; } });
7
- var event_1 = require("./notification-from-worker/event");
8
- Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return event_1.Event; } });
9
- var notification_1 = require("./notification-from-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,12 +0,0 @@
1
- import { SendNotification as FBS_DataProducer_SendNotification } from '../../fbs/data-producer/send-notification';
2
- import { SendNotification } from '../../fbs/producer/send-notification';
3
- import { SendRtcpNotification } from '../../fbs/transport/send-rtcp-notification';
4
- export declare enum Body {
5
- NONE = 0,
6
- Transport_SendRtcpNotification = 1,
7
- Producer_SendNotification = 2,
8
- DataProducer_SendNotification = 3
9
- }
10
- export declare function unionToBody(type: Body, accessor: (obj: FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification) => FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification | null): FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification | null;
11
- export declare function unionListToBody(type: Body, accessor: (index: number, obj: FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification) => FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification | null, index: number): FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification | null;
12
- //# sourceMappingURL=body.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-to-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,IAAI,iCAAiC,EAA2D,MAAM,2CAA2C,CAAC;AAC3K,OAAO,EAAE,gBAAgB,EAAqB,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAyB,MAAM,4CAA4C,CAAC;AAGzG,oBAAY,IAAI;IACd,IAAI,IAAI;IACR,8BAA8B,IAAI;IAClC,yBAAyB,IAAI;IAC7B,6BAA6B,IAAI;CAClC;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,GAAG,EAAC,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,KAAK,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,GAAC,IAAI,GACtK,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,GAAC,IAAI,CAQ9E;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,KAAK,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,GAAC,IAAI,EACtL,KAAK,EAAE,MAAM,GACZ,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,GAAC,IAAI,CAQ9E"}