@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/cjs/index.js +11 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +11 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -15302,12 +15302,20 @@ SCTP Max Message Size: ${maxMessageSize}`);
|
|
|
15302
15302
|
}
|
|
15303
15303
|
const requestedReceiveSlotIds = [];
|
|
15304
15304
|
streamRequests.forEach((request) => {
|
|
15305
|
+
if (request.receiveSlots.length === 0) {
|
|
15306
|
+
logger.error('Stream request ids cannot be empty.');
|
|
15307
|
+
return;
|
|
15308
|
+
}
|
|
15305
15309
|
request.receiveSlots.forEach((slot) => {
|
|
15306
15310
|
if (!slot.id) {
|
|
15307
|
-
logger.error(
|
|
15308
|
-
|
|
15311
|
+
logger.error('Running stream request task, but ReceiveSlot ID is missing.');
|
|
15312
|
+
}
|
|
15313
|
+
if (!requestedReceiveSlotIds.some((id) => compareStreamIds(id, slot.id))) {
|
|
15314
|
+
requestedReceiveSlotIds.push(slot.id);
|
|
15315
|
+
}
|
|
15316
|
+
else {
|
|
15317
|
+
logger.error(`Stream id duplicate found ${JSON.stringify(slot.id)}.`);
|
|
15309
15318
|
}
|
|
15310
|
-
requestedReceiveSlotIds.push(slot.id);
|
|
15311
15319
|
});
|
|
15312
15320
|
});
|
|
15313
15321
|
jmpSession.sendRequests(streamRequests.map((sr) => sr._toJmpStreamRequest()));
|