@webex/web-client-media-engine 3.18.0 → 3.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -15298,12 +15298,20 @@ SCTP Max Message Size: ${maxMessageSize}`);
15298
15298
  }
15299
15299
  const requestedReceiveSlotIds = [];
15300
15300
  streamRequests.forEach((request) => {
15301
+ if (request.receiveSlots.length === 0) {
15302
+ logger.error('Stream request ids cannot be empty.');
15303
+ return;
15304
+ }
15301
15305
  request.receiveSlots.forEach((slot) => {
15302
15306
  if (!slot.id) {
15303
- logger.error(`Running stream request task, but ReceiveSlot ID is missing!`);
15304
- return;
15307
+ logger.error('Running stream request task, but ReceiveSlot ID is missing.');
15308
+ }
15309
+ if (!requestedReceiveSlotIds.some((id) => compareStreamIds(id, slot.id))) {
15310
+ requestedReceiveSlotIds.push(slot.id);
15311
+ }
15312
+ else {
15313
+ logger.error(`Stream id duplicate found ${JSON.stringify(slot.id)}.`);
15305
15314
  }
15306
- requestedReceiveSlotIds.push(slot.id);
15307
15315
  });
15308
15316
  });
15309
15317
  jmpSession.sendRequests(streamRequests.map((sr) => sr._toJmpStreamRequest()));