mediasoup 3.20.5 → 3.20.7

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 (113) hide show
  1. package/node/lib/Worker.d.ts +1 -1
  2. package/node/lib/Worker.d.ts.map +1 -1
  3. package/node/lib/Worker.js +1 -11
  4. package/node/lib/WorkerTypes.d.ts +0 -9
  5. package/node/lib/WorkerTypes.d.ts.map +1 -1
  6. package/node/lib/fbs/plain-transport/connect-response.d.ts.map +1 -1
  7. package/node/lib/fbs/plain-transport/connect-response.js +0 -1
  8. package/node/lib/fbs/worker/dump-response.d.ts +1 -5
  9. package/node/lib/fbs/worker/dump-response.d.ts.map +1 -1
  10. package/node/lib/fbs/worker/dump-response.js +3 -16
  11. package/node/lib/index.d.ts +1 -1
  12. package/node/lib/index.d.ts.map +1 -1
  13. package/node/lib/index.js +1 -2
  14. package/node/lib/test/test-PlainTransport.js +30 -0
  15. package/node/lib/test/test-Worker.js +0 -1
  16. package/npm-scripts.mjs +13 -8
  17. package/package.json +8 -8
  18. package/worker/fbs/meson.build +0 -1
  19. package/worker/fbs/plainTransport.fbs +1 -1
  20. package/worker/fbs/worker.fbs +0 -2
  21. package/worker/include/RTC/Consumer.hpp +80 -45
  22. package/worker/include/RTC/ICE/StunPacket.hpp +8 -9
  23. package/worker/include/RTC/PipeProducerStreamManager.hpp +78 -0
  24. package/worker/include/RTC/ProducerStreamManager.hpp +181 -0
  25. package/worker/include/RTC/RTP/Packet.hpp +1 -1
  26. package/worker/include/RTC/RTP/ProbationGenerator.hpp +1 -1
  27. package/worker/include/RTC/SCTP/association/Association.hpp +24 -0
  28. package/worker/include/RTC/SCTP/association/StateCookie.hpp +104 -11
  29. package/worker/include/RTC/SCTP/packet/Chunk.hpp +1 -1
  30. package/worker/include/RTC/SCTP/packet/ErrorCause.hpp +1 -1
  31. package/worker/include/RTC/SCTP/packet/Packet.hpp +1 -2
  32. package/worker/include/RTC/SCTP/packet/Parameter.hpp +1 -1
  33. package/worker/include/RTC/SCTP/packet/TLV.hpp +1 -1
  34. package/worker/include/RTC/SCTP/packet/chunks/DataChunk.hpp +1 -1
  35. package/worker/include/RTC/SCTP/packet/chunks/ForwardTsnChunk.hpp +1 -1
  36. package/worker/include/RTC/SCTP/packet/chunks/IDataChunk.hpp +1 -1
  37. package/worker/include/RTC/SCTP/packet/chunks/IForwardTsnChunk.hpp +1 -1
  38. package/worker/include/RTC/SCTP/packet/chunks/InitAckChunk.hpp +1 -1
  39. package/worker/include/RTC/SCTP/packet/chunks/InitChunk.hpp +1 -1
  40. package/worker/include/RTC/SCTP/packet/chunks/SackChunk.hpp +1 -1
  41. package/worker/include/RTC/SCTP/packet/chunks/ShutdownChunk.hpp +1 -1
  42. package/worker/include/RTC/SCTP/packet/errorCauses/InvalidStreamIdentifierErrorCause.hpp +1 -1
  43. package/worker/include/RTC/SCTP/packet/errorCauses/MissingMandatoryParameterErrorCause.hpp +1 -1
  44. package/worker/include/RTC/SCTP/packet/errorCauses/NoUserDataErrorCause.hpp +1 -1
  45. package/worker/include/RTC/SCTP/packet/errorCauses/StaleCookieErrorCause.hpp +1 -1
  46. package/worker/include/RTC/SCTP/packet/parameters/AddIncomingStreamsRequestParameter.hpp +1 -1
  47. package/worker/include/RTC/SCTP/packet/parameters/AddOutgoingStreamsRequestParameter.hpp +1 -1
  48. package/worker/include/RTC/SCTP/packet/parameters/CookiePreservativeParameter.hpp +1 -1
  49. package/worker/include/RTC/SCTP/packet/parameters/IPv4AddressParameter.hpp +1 -1
  50. package/worker/include/RTC/SCTP/packet/parameters/IPv6AddressParameter.hpp +1 -1
  51. package/worker/include/RTC/SCTP/packet/parameters/IncomingSsnResetRequestParameter.hpp +1 -1
  52. package/worker/include/RTC/SCTP/packet/parameters/OutgoingSsnResetRequestParameter.hpp +1 -1
  53. package/worker/include/RTC/SCTP/packet/parameters/ReconfigurationResponseParameter.hpp +2 -2
  54. package/worker/include/RTC/SCTP/packet/parameters/SsnTsnResetRequestParameter.hpp +1 -1
  55. package/worker/include/RTC/SCTP/packet/parameters/StateCookieParameter.hpp +4 -1
  56. package/worker/include/RTC/SCTP/packet/parameters/ZeroChecksumAcceptableParameter.hpp +1 -1
  57. package/worker/include/RTC/SCTP/public/SctpOptions.hpp +13 -0
  58. package/worker/include/RTC/SimpleProducerStreamManager.hpp +72 -0
  59. package/worker/include/RTC/SimulcastProducerStreamManager.hpp +93 -0
  60. package/worker/include/RTC/SvcProducerStreamManager.hpp +72 -0
  61. package/worker/include/RTC/Transport.hpp +7 -1
  62. package/worker/include/Settings.hpp +0 -1
  63. package/worker/include/handles/TcpConnectionHandle.hpp +0 -4
  64. package/worker/include/handles/UdpSocketHandle.hpp +0 -4
  65. package/worker/meson.build +9 -39
  66. package/worker/meson_options.txt +0 -1
  67. package/worker/src/RTC/Consumer.cpp +1404 -30
  68. package/worker/src/RTC/DirectTransport.cpp +4 -1
  69. package/worker/src/RTC/PipeProducerStreamManager.cpp +266 -0
  70. package/worker/src/RTC/PipeTransport.cpp +9 -6
  71. package/worker/src/RTC/PlainTransport.cpp +9 -6
  72. package/worker/src/RTC/RTP/Packet.cpp +0 -2
  73. package/worker/src/RTC/RTP/RtpStreamSend.cpp +0 -20
  74. package/worker/src/RTC/Router.cpp +0 -37
  75. package/worker/src/RTC/SCTP/association/Association.cpp +150 -8
  76. package/worker/src/RTC/SCTP/association/StateCookie.cpp +96 -31
  77. package/worker/src/RTC/SCTP/packet/Packet.cpp +1 -1
  78. package/worker/src/RTC/SCTP/packet/parameters/StateCookieParameter.cpp +12 -3
  79. package/worker/src/RTC/SCTP/public/SctpOptions.cpp +4 -0
  80. package/worker/src/RTC/SimpleProducerStreamManager.cpp +343 -0
  81. package/worker/src/RTC/SimulcastProducerStreamManager.cpp +1068 -0
  82. package/worker/src/RTC/SrtpSession.cpp +0 -24
  83. package/worker/src/RTC/SvcProducerStreamManager.cpp +664 -0
  84. package/worker/src/RTC/Transport.cpp +10 -66
  85. package/worker/src/RTC/WebRtcTransport.cpp +13 -7
  86. package/worker/src/Settings.cpp +0 -14
  87. package/worker/src/Utils/Crypto.cpp +3 -3
  88. package/worker/src/Utils/String.cpp +1 -1
  89. package/worker/src/Worker.cpp +5 -38
  90. package/worker/src/handles/TcpConnectionHandle.cpp +1 -42
  91. package/worker/src/handles/UdpSocketHandle.cpp +1 -42
  92. package/worker/src/lib.cpp +1 -10
  93. package/worker/test/include/RTC/SCTP/sctpCommon.hpp +1 -1
  94. package/worker/test/src/RTC/SCTP/association/TestAssociation.cpp +115 -0
  95. package/worker/test/src/RTC/SCTP/association/TestStateCookie.cpp +123 -0
  96. package/worker/test/src/RTC/SCTP/packet/TestPacket.cpp +4 -4
  97. package/worker/test/src/RTC/{TestSimpleConsumer.cpp → TestConsumer.cpp} +6 -7
  98. package/worker/test/src/RTC/TestPipeProducerStreamManager.cpp +471 -0
  99. package/worker/test/src/RTC/TestSimpleProducerStreamManager.cpp +531 -0
  100. package/worker/test/src/RTC/TestSimulcastProducerStreamManager.cpp +1040 -0
  101. package/worker/test/src/RTC/TestSvcProducerStreamManager.cpp +1278 -0
  102. package/worker/fbs/liburing.fbs +0 -7
  103. package/worker/include/DepLibUring.hpp +0 -143
  104. package/worker/include/RTC/PipeConsumer.hpp +0 -95
  105. package/worker/include/RTC/SimpleConsumer.hpp +0 -102
  106. package/worker/include/RTC/SimulcastConsumer.hpp +0 -141
  107. package/worker/include/RTC/SvcConsumer.hpp +0 -118
  108. package/worker/src/DepLibUring.cpp +0 -638
  109. package/worker/src/RTC/PipeConsumer.cpp +0 -874
  110. package/worker/src/RTC/SimpleConsumer.cpp +0 -882
  111. package/worker/src/RTC/SimulcastConsumer.cpp +0 -1887
  112. package/worker/src/RTC/SvcConsumer.cpp +0 -1384
  113. package/worker/subprojects/liburing.wrap +0 -14
@@ -6,7 +6,7 @@ import type { AppData } from './types';
6
6
  export declare const defaultWorkerBin: string;
7
7
  export declare class WorkerImpl<WorkerAppData extends AppData = AppData> extends EnhancedEventEmitter<WorkerEvents> implements Worker {
8
8
  #private;
9
- constructor({ logLevel, logTags, rtcMinPort, rtcMaxPort, dtlsCertificateFile, dtlsPrivateKeyFile, workerBin, libwebrtcFieldTrials, disableLiburing, appData, }: WorkerSettings<WorkerAppData>);
9
+ constructor({ logLevel, logTags, rtcMinPort, rtcMaxPort, dtlsCertificateFile, dtlsPrivateKeyFile, workerBin, libwebrtcFieldTrials, appData, }: WorkerSettings<WorkerAppData>);
10
10
  get pid(): number;
11
11
  get closed(): boolean;
12
12
  get died(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Worker.d.ts","sourceRoot":"","sources":["../src/Worker.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EACX,MAAM,EACN,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,cAAc,EAEd,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAM3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAWvC,eAAO,MAAM,gBAAgB,EAAE,MAA8B,CAAC;AAE9D,qBAAa,UAAU,CAAC,aAAa,SAAS,OAAO,GAAG,OAAO,CAC9D,SAAQ,oBAAoB,CAAC,YAAY,CACzC,YAAW,MAAM;;gBAiCL,EACX,QAAQ,EACR,OAAO,EACP,UAAU,EACV,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,eAAe,EACf,OAAO,GACP,EAAE,cAAc,CAAC,aAAa,CAAC;IAuNhC,IAAI,GAAG,IAAI,MAAM,CAEhB;IAED,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,IAAI,IAAI,OAAO,CAElB;IAED,IAAI,gBAA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D,YAAY,CAAC,mBAAmB,CAAC,CACjC;IA0DK,YAAY,CAAC,aAAa,SAAS,OAAO,GAAG,OAAO,EAAE,EAC3D,WAAW,EACX,OAAO,GACP,GAAE,aAAa,CAAC,aAAa,CAAM,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAgDrE,OAAO,CAAC,UAAU;IAmClB,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,QAAQ,CAMd;CACF"}
@@ -82,7 +82,7 @@ class WorkerImpl extends enhancedEvents_1.EnhancedEventEmitter {
82
82
  #routers = new Set();
83
83
  // Observer instance.
84
84
  #observer = new enhancedEvents_1.EnhancedEventEmitter();
85
- constructor({ logLevel, logTags, rtcMinPort, rtcMaxPort, dtlsCertificateFile, dtlsPrivateKeyFile, workerBin, libwebrtcFieldTrials, disableLiburing, appData, }) {
85
+ constructor({ logLevel, logTags, rtcMinPort, rtcMaxPort, dtlsCertificateFile, dtlsPrivateKeyFile, workerBin, libwebrtcFieldTrials, appData, }) {
86
86
  super();
87
87
  logger.debug('constructor()');
88
88
  workerBin = workerBin ?? exports.defaultWorkerBin;
@@ -118,9 +118,6 @@ class WorkerImpl extends enhancedEvents_1.EnhancedEventEmitter {
118
118
  if (typeof libwebrtcFieldTrials === 'string' && libwebrtcFieldTrials) {
119
119
  spawnArgs.push(`--libwebrtcFieldTrials=${libwebrtcFieldTrials}`);
120
120
  }
121
- if (disableLiburing) {
122
- spawnArgs.push('--disableLiburing=true');
123
- }
124
121
  logger.debug(`spawning worker process: ${spawnBin} ${spawnArgs.join(' ')}`);
125
122
  this.#child = (0, node_child_process_1.spawn)(
126
123
  // command
@@ -434,13 +431,6 @@ function parseWorkerDumpResponse(binary) {
434
431
  channelNotificationHandlers: fbsUtils.parseVector(binary.channelMessageHandlers(), 'channelNotificationHandlers'),
435
432
  },
436
433
  };
437
- if (binary.liburing()) {
438
- dump.liburing = {
439
- sqeProcessCount: Number(binary.liburing().sqeProcessCount()),
440
- sqeMissCount: Number(binary.liburing().sqeMissCount()),
441
- userDataMissCount: Number(binary.liburing().userDataMissCount()),
442
- };
443
- }
444
434
  return dump;
445
435
  }
446
436
  function getDefaultWorkerBin() {
@@ -51,10 +51,6 @@ export type WorkerSettings<WorkerAppData extends AppData = AppData> = {
51
51
  * crash. Default value is "WebRTC-Bwe-AlrLimitedBackoff/Enabled/".
52
52
  */
53
53
  libwebrtcFieldTrials?: string;
54
- /**
55
- * Disable liburing (io_uring) despite it's supported in current host.
56
- */
57
- disableLiburing?: boolean;
58
54
  /**
59
55
  * Custom application data.
60
56
  */
@@ -141,11 +137,6 @@ export type WorkerDump = {
141
137
  channelRequestHandlers: string[];
142
138
  channelNotificationHandlers: string[];
143
139
  };
144
- liburing?: {
145
- sqeProcessCount: number;
146
- sqeMissCount: number;
147
- userDataMissCount: number;
148
- };
149
140
  };
150
141
  export type WorkerEvents = {
151
142
  died: [Error];
@@ -1 +1 @@
1
- {"version":3,"file":"WorkerTypes.d.ts","sourceRoot":"","sources":["../src/WorkerTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEjE,MAAM,MAAM,YAAY,GACrB,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,WAAW,GACX,KAAK,GACL,MAAM,GACN,SAAS,CAAC;AAEb,MAAM,MAAM,cAAc,CAAC,aAAa,SAAS,OAAO,GAAG,OAAO,IAAI;IAC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AAC,QAAQ,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,WAAW,EAAC,WAAW,CAAC,MAAM;IAI3E,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,eAAe,EAAC,WAAW,CAAC,MAAM;IAInF,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,oBAAoB,EAAC,WAAW,CAAC,MAAM;IAI7F,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAMzE,MAAM,IAAI,gBAAgB;IAS1B,QAAQ,CAAC,EAAE,EAAE,gBAAgB,GAAG,IAAI;CAKnC;AAED,qBAAa,gBAAiB,YAAW,WAAW,CAAC,gBAAgB;IAE5D,KAAK,EAAE,MAAM,GAAC,IAAI;IAClB,SAAS,EAAE,MAAM,GAAC,IAAI;IACtB,cAAc,EAAE,eAAe,GAAC,IAAI;gBAFpC,KAAK,GAAE,MAAM,GAAC,IAAW,EACzB,SAAS,GAAE,MAAM,GAAC,IAAW,EAC7B,cAAc,GAAE,eAAe,GAAC,IAAW;IAIpD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAYpD"}
@@ -80,7 +80,6 @@ class ConnectResponse {
80
80
  }
81
81
  static endConnectResponse(builder) {
82
82
  const offset = builder.endObject();
83
- builder.requiredField(offset, 4); // tuple
84
83
  return offset;
85
84
  }
86
85
  unpack() {
@@ -1,5 +1,4 @@
1
1
  import * as flatbuffers from 'flatbuffers';
2
- import { Dump, DumpT } from '../../fbs/lib-uring/dump';
3
2
  import { ChannelMessageHandlers, ChannelMessageHandlersT } from '../../fbs/worker/channel-message-handlers';
4
3
  export declare class DumpResponse implements flatbuffers.IUnpackableObject<DumpResponseT> {
5
4
  bb: flatbuffers.ByteBuffer | null;
@@ -15,7 +14,6 @@ export declare class DumpResponse implements flatbuffers.IUnpackableObject<DumpR
15
14
  routerIds(index: number, optionalEncoding: flatbuffers.Encoding): string | Uint8Array;
16
15
  routerIdsLength(): number;
17
16
  channelMessageHandlers(obj?: ChannelMessageHandlers): ChannelMessageHandlers | null;
18
- liburing(obj?: Dump): Dump | null;
19
17
  static startDumpResponse(builder: flatbuffers.Builder): void;
20
18
  static addPid(builder: flatbuffers.Builder, pid: number): void;
21
19
  static addWebRtcServerIds(builder: flatbuffers.Builder, webRtcServerIdsOffset: flatbuffers.Offset): void;
@@ -25,7 +23,6 @@ export declare class DumpResponse implements flatbuffers.IUnpackableObject<DumpR
25
23
  static createRouterIdsVector(builder: flatbuffers.Builder, data: flatbuffers.Offset[]): flatbuffers.Offset;
26
24
  static startRouterIdsVector(builder: flatbuffers.Builder, numElems: number): void;
27
25
  static addChannelMessageHandlers(builder: flatbuffers.Builder, channelMessageHandlersOffset: flatbuffers.Offset): void;
28
- static addLiburing(builder: flatbuffers.Builder, liburingOffset: flatbuffers.Offset): void;
29
26
  static endDumpResponse(builder: flatbuffers.Builder): flatbuffers.Offset;
30
27
  unpack(): DumpResponseT;
31
28
  unpackTo(_o: DumpResponseT): void;
@@ -35,8 +32,7 @@ export declare class DumpResponseT implements flatbuffers.IGeneratedObject {
35
32
  webRtcServerIds: (string)[];
36
33
  routerIds: (string)[];
37
34
  channelMessageHandlers: ChannelMessageHandlersT | null;
38
- liburing: DumpT | null;
39
- constructor(pid?: number, webRtcServerIds?: (string)[], routerIds?: (string)[], channelMessageHandlers?: ChannelMessageHandlersT | null, liburing?: DumpT | null);
35
+ constructor(pid?: number, webRtcServerIds?: (string)[], routerIds?: (string)[], channelMessageHandlers?: ChannelMessageHandlersT | null);
40
36
  pack(builder: flatbuffers.Builder): flatbuffers.Offset;
41
37
  }
42
38
  //# sourceMappingURL=dump-response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dump-response.d.ts","sourceRoot":"","sources":["../../../src/fbs/worker/dump-response.ts"],"names":[],"mappings":"AAIA,OA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AAc,YAAW,WAAW,CAAC,gBAAgB;IAEzD,GAAG,EAAE,MAAM;IACX,eAAe,EAAE,CAAC,MAAM,CAAC,EAAE;IAC3B,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE;IACrB,sBAAsB,EAAE,uBAAuB,GAAC,IAAI;gBAHpD,GAAG,GAAE,MAAU,EACf,eAAe,GAAE,CAAC,MAAM,CAAC,EAAO,EAChC,SAAS,GAAE,CAAC,MAAM,CAAC,EAAO,EAC1B,sBAAsB,GAAE,uBAAuB,GAAC,IAAW;IAIpE,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAapD"}
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.DumpResponseT = exports.DumpResponse = void 0;
38
38
  /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
39
39
  const flatbuffers = __importStar(require("flatbuffers"));
40
- const dump_1 = require("../../fbs/lib-uring/dump");
41
40
  const channel_message_handlers_1 = require("../../fbs/worker/channel-message-handlers");
42
41
  class DumpResponse {
43
42
  bb = null;
@@ -78,12 +77,8 @@ class DumpResponse {
78
77
  const offset = this.bb.__offset(this.bb_pos, 10);
79
78
  return offset ? (obj || new channel_message_handlers_1.ChannelMessageHandlers()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
80
79
  }
81
- liburing(obj) {
82
- const offset = this.bb.__offset(this.bb_pos, 12);
83
- return offset ? (obj || new dump_1.Dump()).__init(this.bb.__indirect(this.bb_pos + offset), this.bb) : null;
84
- }
85
80
  static startDumpResponse(builder) {
86
- builder.startObject(5);
81
+ builder.startObject(4);
87
82
  }
88
83
  static addPid(builder, pid) {
89
84
  builder.addFieldInt32(0, pid, 0);
@@ -117,9 +112,6 @@ class DumpResponse {
117
112
  static addChannelMessageHandlers(builder, channelMessageHandlersOffset) {
118
113
  builder.addFieldOffset(3, channelMessageHandlersOffset, 0);
119
114
  }
120
- static addLiburing(builder, liburingOffset) {
121
- builder.addFieldOffset(4, liburingOffset, 0);
122
- }
123
115
  static endDumpResponse(builder) {
124
116
  const offset = builder.endObject();
125
117
  builder.requiredField(offset, 6); // web_rtc_server_ids
@@ -128,14 +120,13 @@ class DumpResponse {
128
120
  return offset;
129
121
  }
130
122
  unpack() {
131
- return new DumpResponseT(this.pid(), this.bb.createScalarList(this.webRtcServerIds.bind(this), this.webRtcServerIdsLength()), this.bb.createScalarList(this.routerIds.bind(this), this.routerIdsLength()), (this.channelMessageHandlers() !== null ? this.channelMessageHandlers().unpack() : null), (this.liburing() !== null ? this.liburing().unpack() : null));
123
+ return new DumpResponseT(this.pid(), this.bb.createScalarList(this.webRtcServerIds.bind(this), this.webRtcServerIdsLength()), this.bb.createScalarList(this.routerIds.bind(this), this.routerIdsLength()), (this.channelMessageHandlers() !== null ? this.channelMessageHandlers().unpack() : null));
132
124
  }
133
125
  unpackTo(_o) {
134
126
  _o.pid = this.pid();
135
127
  _o.webRtcServerIds = this.bb.createScalarList(this.webRtcServerIds.bind(this), this.webRtcServerIdsLength());
136
128
  _o.routerIds = this.bb.createScalarList(this.routerIds.bind(this), this.routerIdsLength());
137
129
  _o.channelMessageHandlers = (this.channelMessageHandlers() !== null ? this.channelMessageHandlers().unpack() : null);
138
- _o.liburing = (this.liburing() !== null ? this.liburing().unpack() : null);
139
130
  }
140
131
  }
141
132
  exports.DumpResponse = DumpResponse;
@@ -144,25 +135,21 @@ class DumpResponseT {
144
135
  webRtcServerIds;
145
136
  routerIds;
146
137
  channelMessageHandlers;
147
- liburing;
148
- constructor(pid = 0, webRtcServerIds = [], routerIds = [], channelMessageHandlers = null, liburing = null) {
138
+ constructor(pid = 0, webRtcServerIds = [], routerIds = [], channelMessageHandlers = null) {
149
139
  this.pid = pid;
150
140
  this.webRtcServerIds = webRtcServerIds;
151
141
  this.routerIds = routerIds;
152
142
  this.channelMessageHandlers = channelMessageHandlers;
153
- this.liburing = liburing;
154
143
  }
155
144
  pack(builder) {
156
145
  const webRtcServerIds = DumpResponse.createWebRtcServerIdsVector(builder, builder.createObjectOffsetList(this.webRtcServerIds));
157
146
  const routerIds = DumpResponse.createRouterIdsVector(builder, builder.createObjectOffsetList(this.routerIds));
158
147
  const channelMessageHandlers = (this.channelMessageHandlers !== null ? this.channelMessageHandlers.pack(builder) : 0);
159
- const liburing = (this.liburing !== null ? this.liburing.pack(builder) : 0);
160
148
  DumpResponse.startDumpResponse(builder);
161
149
  DumpResponse.addPid(builder, this.pid);
162
150
  DumpResponse.addWebRtcServerIds(builder, webRtcServerIds);
163
151
  DumpResponse.addRouterIds(builder, routerIds);
164
152
  DumpResponse.addChannelMessageHandlers(builder, channelMessageHandlers);
165
- DumpResponse.addLiburing(builder, liburing);
166
153
  return DumpResponse.endDumpResponse(builder);
167
154
  }
168
155
  }
@@ -44,7 +44,7 @@ export declare function setLogEventListeners(listeners?: LogEventListeners): voi
44
44
  /**
45
45
  * Create a Worker.
46
46
  */
47
- export declare function createWorker<WorkerAppData extends AppData = AppData>({ logLevel, logTags, rtcMinPort, rtcMaxPort, dtlsCertificateFile, dtlsPrivateKeyFile, workerBin, libwebrtcFieldTrials, disableLiburing, appData, }?: WorkerSettings<WorkerAppData>): Promise<Worker<WorkerAppData>>;
47
+ export declare function createWorker<WorkerAppData extends AppData = AppData>({ logLevel, logTags, rtcMinPort, rtcMaxPort, dtlsCertificateFile, dtlsPrivateKeyFile, workerBin, libwebrtcFieldTrials, appData, }?: WorkerSettings<WorkerAppData>): Promise<Worker<WorkerAppData>>;
48
48
  /**
49
49
  * Get a cloned copy of the mediasoup supported RTP capabilities.
50
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,QAAQ,EAER,iBAAiB,EAEjB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAA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AE,MAAM,eAAe,CAAC;AAG5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC;;GAEG;AACH,YAAY,KAAK,KAAK,MAAM,SAAS,CAAC;AAEtC;;GAEG;AAEH,eAAO,MAAM,OAAO,EAAE,MAA8C,CAAC;AAErE,QAAA,MAAM,QAAQ,EAAE,QAAqD,CAAC;AAEtE;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB;;GAEG;AACH,OAAO,EAAE,gBAAgB,IAAI,SAAS,EAAE,MAAM,UAAU,CAAC;AAIzD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,CA0BxE;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,aAAa,SAAS,OAAO,GAAG,OAAO,EAAE,EAC3E,QAAkB,EAClB,OAAO,EACP,UAAkB,EAClB,UAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAElB,SAAS,EACT,oBAAoB,EACpB,OAAO,GACP,GAAE,cAAc,CAAC,aAAa,CAAM,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CA6BrE;AAED;;GAEG;AACH,wBAAgB,2BAA2B,IAAI,qBAAqB,CAEnE;AAED;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAE/B;;GAEG;AACH,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
package/node/lib/index.js CHANGED
@@ -101,7 +101,7 @@ function setLogEventListeners(listeners) {
101
101
  */
102
102
  async function createWorker({ logLevel = 'error', logTags, rtcMinPort = 10000, rtcMaxPort = 59999, dtlsCertificateFile, dtlsPrivateKeyFile,
103
103
  // eslint-disable-next-line no-shadow
104
- workerBin, libwebrtcFieldTrials, disableLiburing = false, appData, } = {}) {
104
+ workerBin, libwebrtcFieldTrials, appData, } = {}) {
105
105
  logger.debug('createWorker()');
106
106
  if (appData && typeof appData !== 'object') {
107
107
  throw new TypeError('if given, appData must be an object');
@@ -115,7 +115,6 @@ workerBin, libwebrtcFieldTrials, disableLiburing = false, appData, } = {}) {
115
115
  dtlsPrivateKeyFile,
116
116
  workerBin,
117
117
  libwebrtcFieldTrials,
118
- disableLiburing,
119
118
  appData,
120
119
  });
121
120
  return new Promise((resolve, reject) => {
@@ -288,6 +288,36 @@ test('router.createPlainTransport() with enableSrtp succeeds', async () => {
288
288
  expect(plainTransport.srtpParameters?.cryptoSuite).toBe('AEAD_AES_256_GCM');
289
289
  expect(plainTransport.srtpParameters?.keyBase64.length).toBe(60);
290
290
  }, 2000);
291
+ test('plainTransport.connect() with srtpParameters and comedia enabled succeeds', async () => {
292
+ // In comedia mode the remote endpoint is not known until the first packet is
293
+ // received, so the worker's connect response carries no tuple. `connect()`
294
+ // (called with just `srtpParameters`, as documented for comedia + SRTP) must
295
+ // still succeed.
296
+ const plainTransport = await ctx.router.createPlainTransport({
297
+ listenInfo: { protocol: 'udp', ip: '127.0.0.1' },
298
+ enableSrtp: true,
299
+ comedia: true,
300
+ });
301
+ // Default cryptoSuite: 'AES_CM_128_HMAC_SHA1_80'.
302
+ expect(plainTransport.srtpParameters?.cryptoSuite).toBe('AES_CM_128_HMAC_SHA1_80');
303
+ expect(plainTransport.srtpParameters?.keyBase64.length).toBe(40);
304
+ // The tuple only carries local information until comedia latches a remote.
305
+ expect(plainTransport.tuple.localAddress).toBe('127.0.0.1');
306
+ expect(plainTransport.tuple.protocol).toBe('udp');
307
+ expect(plainTransport.tuple.remoteIp).toBeUndefined();
308
+ // Valid srtpParameters. And no need for ip and port since comedia is enabled.
309
+ await expect(plainTransport.connect({
310
+ srtpParameters: {
311
+ cryptoSuite: 'AEAD_AES_256_GCM',
312
+ keyBase64: 'YTdjcDBvY2JoMGY5YXNlNDc0eDJsdGgwaWRvNnJsamRrdG16aWVpZHphdHo=',
313
+ },
314
+ })).resolves.toBeUndefined();
315
+ // The remote SRTP crypto suite has been applied.
316
+ expect(plainTransport.srtpParameters?.cryptoSuite).toBe('AEAD_AES_256_GCM');
317
+ expect(plainTransport.srtpParameters?.keyBase64.length).toBe(60);
318
+ // The tuple is still local only. Comedia will latch the remote later.
319
+ expect(plainTransport.tuple.remoteIp).toBeUndefined();
320
+ }, 2000);
291
321
  test('router.createPlainTransport() with non bindable IP rejects with Error', async () => {
292
322
  await expect(ctx.router.createPlainTransport({ listenIp: '8.8.8.8' })).rejects.toThrow(Error);
293
323
  }, 2000);
@@ -71,7 +71,6 @@ test('mediasoup.createWorker() succeeds', async () => {
71
71
  dtlsCertificateFile: path.join(__dirname, 'data', 'dtls-cert.pem'),
72
72
  dtlsPrivateKeyFile: path.join(__dirname, 'data', 'dtls-key.pem'),
73
73
  libwebrtcFieldTrials: 'WebRTC-Bwe-AlrLimitedBackoff/Disabled/',
74
- disableLiburing: true,
75
74
  appData: { foo: 456 },
76
75
  });
77
76
  expect(worker2.constructor.name).toBe('WorkerImpl');
package/npm-scripts.mjs CHANGED
@@ -86,7 +86,7 @@ async function run() {
86
86
  // So here we generate flatbuffers definitions for TypeScript and compile
87
87
  // TypeScript to JavaScript.
88
88
  case 'prepare': {
89
- await flatcNode();
89
+ await flatcNode({ force: false });
90
90
  buildTypescript({ force: false });
91
91
 
92
92
  break;
@@ -203,7 +203,7 @@ async function run() {
203
203
  }
204
204
 
205
205
  case 'flatc:node': {
206
- await flatcNode();
206
+ await flatcNode({ force: true });
207
207
 
208
208
  break;
209
209
  }
@@ -277,8 +277,7 @@ function getPython() {
277
277
  function getWorkerPrebuildTarName() {
278
278
  let workerPrebuildTarName = `mediasoup-worker-${pkg.version}-${os.platform()}-${os.arch()}`;
279
279
 
280
- // In Linux we want to know about kernel version since kernel >= 6 supports
281
- // io-uring.
280
+ // In Linux we want to know about kernel version.
282
281
  if (os.platform() === 'linux') {
283
282
  const kernelMajorVersion = Number(os.release().split('.')[0]);
284
283
 
@@ -319,6 +318,7 @@ function deleteNodeLib() {
319
318
  }
320
319
 
321
320
  function buildTypescript({ force }) {
321
+ // Skip JavaScript code generation if the output already exists, unless forced.
322
322
  if (!force && fs.existsSync('node/lib')) {
323
323
  return;
324
324
  }
@@ -420,8 +420,13 @@ function tidyWorker({ fix }) {
420
420
  }
421
421
  }
422
422
 
423
- async function flatcNode() {
424
- logInfo('flatcNode()');
423
+ async function flatcNode({ force }) {
424
+ // Skip flatbuffers generation if the output already exists, unless forced.
425
+ if (!force && fs.existsSync(path.join('node', 'src', 'fbs'))) {
426
+ return;
427
+ }
428
+
429
+ logInfo(`flatcNode() [force:${force}]`);
425
430
 
426
431
  // NOTE: Load dep on demand since it's a devDependency.
427
432
  const ini = await import('ini');
@@ -531,14 +536,14 @@ function publishDryRun() {
531
536
  // real publish would, reporting its contents without writing any file or
532
537
  // contacting the registry. Useful to validate the `files` list in
533
538
  // package.json and that the package builds before tagging a release.
534
- executeCmd('npm pack --dry-run');
539
+ executeCmd('npm pack --dry-run --loglevel warn');
535
540
  }
536
541
 
537
542
  async function checkRelease() {
538
543
  logInfo('checkRelease()');
539
544
 
540
545
  installNodeDeps();
541
- await flatcNode();
546
+ await flatcNode({ force: true });
542
547
  buildTypescript({ force: true });
543
548
  buildWorker();
544
549
  lintNode();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasoup",
3
- "version": "3.20.5",
3
+ "version": "3.20.7",
4
4
  "description": "Cutting Edge WebRTC Video Conferencing",
5
5
  "contributors": [
6
6
  "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
@@ -103,7 +103,7 @@
103
103
  "dependencies": {
104
104
  "debug": "^4.4.3",
105
105
  "flatbuffers": "^25.9.23",
106
- "h264-profile-level-id": "^2.3.2",
106
+ "h264-profile-level-id": "^2.3.3",
107
107
  "node-fetch": "^3.3.2",
108
108
  "supports-color": "^10.2.2",
109
109
  "tar": "^7.5.16"
@@ -114,22 +114,22 @@
114
114
  "@types/debug": "^4.1.13",
115
115
  "@types/ini": "^4.1.1",
116
116
  "@types/jest": "^30.0.0",
117
- "@types/node": "^25.6.2",
118
- "eslint": "^10.4.1",
117
+ "@types/node": "^25.9.3",
118
+ "eslint": "^10.5.0",
119
119
  "eslint-config-prettier": "^10.1.8",
120
120
  "eslint-plugin-jest": "^29.15.2",
121
121
  "eslint-plugin-prettier": "^5.5.6",
122
122
  "globals": "^17.6.0",
123
123
  "ini": "^6.0.0",
124
124
  "jest": "^30.4.2",
125
- "knip": "^6.16.1",
125
+ "knip": "^6.17.1",
126
126
  "marked": "^18.0.5",
127
127
  "open-cli": "^9.0.0",
128
- "pick-port": "^2.2.0",
129
- "prettier": "^3.8.3",
128
+ "pick-port": "^2.2.1",
129
+ "prettier": "^3.8.4",
130
130
  "ts-jest": "^29.4.11",
131
131
  "typescript": "^6.0.3",
132
- "typescript-eslint": "^8.60.1",
132
+ "typescript-eslint": "^8.61.1",
133
133
  "werift-sctp": "^0.0.11"
134
134
  }
135
135
  }
@@ -6,7 +6,6 @@ flatbuffers_schemas = [
6
6
  'dataConsumer.fbs',
7
7
  'dataProducer.fbs',
8
8
  'directTransport.fbs',
9
- 'liburing.fbs',
10
9
  'log.fbs',
11
10
  'message.fbs',
12
11
  'notification.fbs',
@@ -22,7 +22,7 @@ table ConnectRequest {
22
22
  }
23
23
 
24
24
  table ConnectResponse {
25
- tuple: FBS.Transport.Tuple (required);
25
+ tuple: FBS.Transport.Tuple;
26
26
  rtcp_tuple: FBS.Transport.Tuple;
27
27
  srtp_parameters: FBS.SrtpParameters.SrtpParameters;
28
28
  }
@@ -1,4 +1,3 @@
1
- include "liburing.fbs";
2
1
  include "transport.fbs";
3
2
 
4
3
  namespace FBS.Worker;
@@ -13,7 +12,6 @@ table DumpResponse {
13
12
  web_rtc_server_ids: [string] (required);
14
13
  router_ids: [string] (required);
15
14
  channel_message_handlers: ChannelMessageHandlers (required);
16
- liburing: FBS.LibUring.Dump;
17
15
  }
18
16
 
19
17
  table ResourceUsageResponse {