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.
Files changed (168) hide show
  1. package/node/lib/fbs/data-consumer/binary.d.ts +25 -0
  2. package/node/lib/fbs/data-consumer/binary.d.ts.map +1 -0
  3. package/node/lib/fbs/data-consumer/binary.js +110 -0
  4. package/node/lib/fbs/data-consumer/data.d.ts +10 -0
  5. package/node/lib/fbs/data-consumer/data.d.ts.map +1 -0
  6. package/node/lib/fbs/data-consumer/data.js +30 -0
  7. package/node/lib/fbs/data-consumer/string.d.ts +22 -0
  8. package/node/lib/fbs/data-consumer/string.d.ts.map +1 -0
  9. package/node/lib/fbs/{worker/close-notification.js → data-consumer/string.js} +34 -20
  10. package/node/lib/fbs/data-producer/binary.d.ts +25 -0
  11. package/node/lib/fbs/data-producer/binary.d.ts.map +1 -0
  12. package/node/lib/fbs/data-producer/binary.js +110 -0
  13. package/node/lib/fbs/data-producer/data.d.ts +10 -0
  14. package/node/lib/fbs/data-producer/data.d.ts.map +1 -0
  15. package/node/lib/fbs/data-producer/data.js +30 -0
  16. package/node/lib/fbs/data-producer/string.d.ts +22 -0
  17. package/node/lib/fbs/data-producer/string.d.ts.map +1 -0
  18. package/node/lib/fbs/data-producer/string.js +92 -0
  19. package/node/lib/fbs/message/type.d.ts +7 -0
  20. package/node/lib/fbs/message/type.d.ts.map +1 -0
  21. package/node/lib/fbs/message/type.js +11 -0
  22. package/node/lib/fbs/message-from-worker/body.d.ts +12 -0
  23. package/node/lib/fbs/message-from-worker/body.d.ts.map +1 -0
  24. package/node/lib/fbs/message-from-worker/body.js +34 -0
  25. package/node/lib/fbs/message-from-worker/message.d.ts +30 -0
  26. package/node/lib/fbs/message-from-worker/message.d.ts.map +1 -0
  27. package/node/lib/fbs/message-from-worker/message.js +122 -0
  28. package/node/lib/fbs/message-from-worker.d.ts +3 -0
  29. package/node/lib/fbs/message-from-worker.d.ts.map +1 -0
  30. package/node/lib/fbs/message-from-worker.js +9 -0
  31. package/node/lib/fbs/message-to-worker/body.d.ts +10 -0
  32. package/node/lib/fbs/message-to-worker/body.d.ts.map +1 -0
  33. package/node/lib/fbs/message-to-worker/body.js +30 -0
  34. package/node/lib/fbs/message-to-worker/message.d.ts +29 -0
  35. package/node/lib/fbs/message-to-worker/message.d.ts.map +1 -0
  36. package/node/lib/fbs/message-to-worker/message.js +122 -0
  37. package/node/lib/fbs/message-to-worker.d.ts +3 -0
  38. package/node/lib/fbs/message-to-worker.d.ts.map +1 -0
  39. package/node/lib/fbs/message-to-worker.js +9 -0
  40. package/node/lib/fbs/notification-from-worker/body.d.ts +44 -0
  41. package/node/lib/fbs/notification-from-worker/body.d.ts.map +1 -0
  42. package/node/lib/fbs/notification-from-worker/body.js +98 -0
  43. package/node/lib/fbs/notification-from-worker/event.d.ts +31 -0
  44. package/node/lib/fbs/notification-from-worker/event.d.ts.map +1 -0
  45. package/node/lib/fbs/notification-from-worker/event.js +35 -0
  46. package/node/lib/fbs/notification-from-worker/notification.d.ts +52 -0
  47. package/node/lib/fbs/notification-from-worker/notification.d.ts.map +1 -0
  48. package/node/lib/fbs/notification-from-worker/notification.js +140 -0
  49. package/node/lib/fbs/notification-from-worker.d.ts +4 -0
  50. package/node/lib/fbs/notification-from-worker.d.ts.map +1 -0
  51. package/node/lib/fbs/notification-from-worker.js +11 -0
  52. package/node/lib/fbs/notification-to-worker/body.d.ts +12 -0
  53. package/node/lib/fbs/notification-to-worker/body.d.ts.map +1 -0
  54. package/node/lib/fbs/notification-to-worker/body.js +34 -0
  55. package/node/lib/fbs/notification-to-worker/event.d.ts +6 -0
  56. package/node/lib/fbs/notification-to-worker/event.d.ts.map +1 -0
  57. package/node/lib/fbs/notification-to-worker/event.js +10 -0
  58. package/node/lib/fbs/notification-to-worker/notification.d.ts +36 -0
  59. package/node/lib/fbs/notification-to-worker/notification.d.ts.map +1 -0
  60. package/node/lib/fbs/notification-to-worker/notification.js +140 -0
  61. package/node/lib/fbs/notification-to-worker.d.ts +4 -0
  62. package/node/lib/fbs/notification-to-worker.d.ts.map +1 -0
  63. package/node/lib/fbs/notification-to-worker.js +11 -0
  64. package/node/lib/fbs/sctp-parameters/num-sctp-streams.d.ts.map +1 -1
  65. package/node/lib/fbs/sctp-parameters/num-sctp-streams.js +5 -5
  66. package/node/lib/fbs/trace-events/fir-trace-info.d.ts +21 -0
  67. package/node/lib/fbs/trace-events/fir-trace-info.d.ts.map +1 -0
  68. package/node/lib/fbs/{worker/close-request.js → trace-events/fir-trace-info.js} +32 -20
  69. package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts +25 -0
  70. package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts.map +1 -0
  71. package/node/lib/fbs/trace-events/key-frame-trace-info.js +104 -0
  72. package/node/lib/fbs/trace-events/pli-trace-info.d.ts +21 -0
  73. package/node/lib/fbs/trace-events/pli-trace-info.d.ts.map +1 -0
  74. package/node/lib/fbs/{worker/close-worker-notification.js → trace-events/pli-trace-info.js} +32 -20
  75. package/node/lib/fbs/trace-events/rtp-trace-info.d.ts +25 -0
  76. package/node/lib/fbs/trace-events/rtp-trace-info.d.ts.map +1 -0
  77. package/node/lib/fbs/{consumer/enable-delay-and-loss-request.js → trace-events/rtp-trace-info.js} +35 -33
  78. package/node/lib/fbs/trace-events/trace-event-type.d.ts +8 -0
  79. package/node/lib/fbs/trace-events/trace-event-type.d.ts.map +1 -0
  80. package/node/lib/fbs/trace-events/trace-event-type.js +12 -0
  81. package/node/lib/fbs/trace-events/trace-info.d.ts +14 -0
  82. package/node/lib/fbs/trace-events/trace-info.d.ts.map +1 -0
  83. package/node/lib/fbs/trace-events/trace-info.js +38 -0
  84. package/node/lib/fbs/trace-events.d.ts +7 -0
  85. package/node/lib/fbs/trace-events.d.ts.map +1 -0
  86. package/node/lib/fbs/trace-events.js +20 -0
  87. package/npm-scripts.mjs +13 -8
  88. package/package.json +6 -6
  89. package/worker/fbs/meson.build +0 -1
  90. package/worker/fbs/plainTransport.fbs +1 -1
  91. package/worker/fbs/worker.fbs +0 -2
  92. package/worker/include/RTC/ICE/StunPacket.hpp +8 -9
  93. package/worker/include/RTC/RTP/Packet.hpp +1 -1
  94. package/worker/include/RTC/RTP/ProbationGenerator.hpp +1 -1
  95. package/worker/include/RTC/SCTP/packet/Chunk.hpp +1 -1
  96. package/worker/include/RTC/SCTP/packet/ErrorCause.hpp +1 -1
  97. package/worker/include/RTC/SCTP/packet/Packet.hpp +1 -2
  98. package/worker/include/RTC/SCTP/packet/Parameter.hpp +1 -1
  99. package/worker/include/RTC/SCTP/packet/TLV.hpp +1 -1
  100. package/worker/include/RTC/SCTP/packet/chunks/DataChunk.hpp +1 -1
  101. package/worker/include/RTC/SCTP/packet/chunks/ForwardTsnChunk.hpp +1 -1
  102. package/worker/include/RTC/SCTP/packet/chunks/IDataChunk.hpp +1 -1
  103. package/worker/include/RTC/SCTP/packet/chunks/IForwardTsnChunk.hpp +1 -1
  104. package/worker/include/RTC/SCTP/packet/chunks/InitAckChunk.hpp +1 -1
  105. package/worker/include/RTC/SCTP/packet/chunks/InitChunk.hpp +1 -1
  106. package/worker/include/RTC/SCTP/packet/chunks/SackChunk.hpp +1 -1
  107. package/worker/include/RTC/SCTP/packet/chunks/ShutdownChunk.hpp +1 -1
  108. package/worker/include/RTC/SCTP/packet/errorCauses/InvalidStreamIdentifierErrorCause.hpp +1 -1
  109. package/worker/include/RTC/SCTP/packet/errorCauses/MissingMandatoryParameterErrorCause.hpp +1 -1
  110. package/worker/include/RTC/SCTP/packet/errorCauses/NoUserDataErrorCause.hpp +1 -1
  111. package/worker/include/RTC/SCTP/packet/errorCauses/StaleCookieErrorCause.hpp +1 -1
  112. package/worker/include/RTC/SCTP/packet/parameters/AddIncomingStreamsRequestParameter.hpp +1 -1
  113. package/worker/include/RTC/SCTP/packet/parameters/AddOutgoingStreamsRequestParameter.hpp +1 -1
  114. package/worker/include/RTC/SCTP/packet/parameters/CookiePreservativeParameter.hpp +1 -1
  115. package/worker/include/RTC/SCTP/packet/parameters/IPv4AddressParameter.hpp +1 -1
  116. package/worker/include/RTC/SCTP/packet/parameters/IPv6AddressParameter.hpp +1 -1
  117. package/worker/include/RTC/SCTP/packet/parameters/IncomingSsnResetRequestParameter.hpp +1 -1
  118. package/worker/include/RTC/SCTP/packet/parameters/OutgoingSsnResetRequestParameter.hpp +1 -1
  119. package/worker/include/RTC/SCTP/packet/parameters/ReconfigurationResponseParameter.hpp +2 -2
  120. package/worker/include/RTC/SCTP/packet/parameters/SsnTsnResetRequestParameter.hpp +1 -1
  121. package/worker/include/RTC/SCTP/packet/parameters/ZeroChecksumAcceptableParameter.hpp +1 -1
  122. package/worker/include/Settings.hpp +0 -1
  123. package/worker/include/handles/TcpConnectionHandle.hpp +0 -4
  124. package/worker/include/handles/UdpSocketHandle.hpp +0 -4
  125. package/worker/meson.build +0 -34
  126. package/worker/meson_options.txt +0 -1
  127. package/worker/src/RTC/PipeTransport.cpp +5 -5
  128. package/worker/src/RTC/PlainTransport.cpp +5 -5
  129. package/worker/src/RTC/RTP/Packet.cpp +0 -2
  130. package/worker/src/RTC/RTP/RtpStreamSend.cpp +0 -20
  131. package/worker/src/RTC/Router.cpp +0 -37
  132. package/worker/src/RTC/SCTP/association/Association.cpp +12 -7
  133. package/worker/src/RTC/SimpleProducerStreamManager.cpp +6 -3
  134. package/worker/src/RTC/SimulcastProducerStreamManager.cpp +2 -2
  135. package/worker/src/RTC/SrtpSession.cpp +0 -24
  136. package/worker/src/RTC/Transport.cpp +3 -22
  137. package/worker/src/RTC/WebRtcTransport.cpp +5 -5
  138. package/worker/src/Settings.cpp +0 -14
  139. package/worker/src/Utils/Crypto.cpp +3 -3
  140. package/worker/src/Utils/String.cpp +1 -1
  141. package/worker/src/Worker.cpp +5 -38
  142. package/worker/src/handles/TcpConnectionHandle.cpp +1 -42
  143. package/worker/src/handles/UdpSocketHandle.cpp +1 -42
  144. package/worker/src/lib.cpp +1 -10
  145. package/node/lib/fbs/consumer/degrade-request.d.ts +0 -30
  146. package/node/lib/fbs/consumer/degrade-request.d.ts.map +0 -1
  147. package/node/lib/fbs/consumer/degrade-request.js +0 -124
  148. package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts +0 -24
  149. package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts.map +0 -1
  150. package/node/lib/fbs/producer/degrade-request.d.ts +0 -30
  151. package/node/lib/fbs/producer/degrade-request.d.ts.map +0 -1
  152. package/node/lib/fbs/producer/degrade-request.js +0 -124
  153. package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts +0 -24
  154. package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts.map +0 -1
  155. package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.js +0 -102
  156. package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts +0 -24
  157. package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts.map +0 -1
  158. package/node/lib/fbs/transport/sctp-negotiated-options-notification.js +0 -102
  159. package/node/lib/fbs/worker/close-notification.d.ts +0 -18
  160. package/node/lib/fbs/worker/close-notification.d.ts.map +0 -1
  161. package/node/lib/fbs/worker/close-request.d.ts +0 -18
  162. package/node/lib/fbs/worker/close-request.d.ts.map +0 -1
  163. package/node/lib/fbs/worker/close-worker-notification.d.ts +0 -18
  164. package/node/lib/fbs/worker/close-worker-notification.d.ts.map +0 -1
  165. package/worker/fbs/liburing.fbs +0 -7
  166. package/worker/include/DepLibUring.hpp +0 -143
  167. package/worker/src/DepLibUring.cpp +0 -638
  168. package/worker/subprojects/liburing.wrap +0 -14
@@ -0,0 +1,35 @@
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 = {}));
@@ -0,0 +1,52 @@
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
@@ -0,0 +1 @@
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,o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,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,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,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"}
@@ -0,0 +1,140 @@
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;
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,11 @@
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; } });
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,34 @@
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
+ }
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,10 @@
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 = {}));
@@ -0,0 +1,36 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-to-worker/not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,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"}
@@ -0,0 +1,140 @@
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;
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,11 @@
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 +1 @@
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,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,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"}
@@ -54,20 +54,20 @@ class NumSctpStreams {
54
54
  }
55
55
  os() {
56
56
  const offset = this.bb.__offset(this.bb_pos, 4);
57
- return offset ? this.bb.readUint16(this.bb_pos + offset) : 65535;
57
+ return offset ? this.bb.readUint16(this.bb_pos + offset) : 1024;
58
58
  }
59
59
  mis() {
60
60
  const offset = this.bb.__offset(this.bb_pos, 6);
61
- return offset ? this.bb.readUint16(this.bb_pos + offset) : 65535;
61
+ return offset ? this.bb.readUint16(this.bb_pos + offset) : 1024;
62
62
  }
63
63
  static startNumSctpStreams(builder) {
64
64
  builder.startObject(2);
65
65
  }
66
66
  static addOs(builder, os) {
67
- builder.addFieldInt16(0, os, 65535);
67
+ builder.addFieldInt16(0, os, 1024);
68
68
  }
69
69
  static addMis(builder, mis) {
70
- builder.addFieldInt16(1, mis, 65535);
70
+ builder.addFieldInt16(1, mis, 1024);
71
71
  }
72
72
  static endNumSctpStreams(builder) {
73
73
  const offset = builder.endObject();
@@ -91,7 +91,7 @@ exports.NumSctpStreams = NumSctpStreams;
91
91
  class NumSctpStreamsT {
92
92
  os;
93
93
  mis;
94
- constructor(os = 65535, mis = 65535) {
94
+ constructor(os = 1024, mis = 1024) {
95
95
  this.os = os;
96
96
  this.mis = mis;
97
97
  }
@@ -0,0 +1,21 @@
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
@@ -0,0 +1 @@
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,CAA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