@webex/web-client-media-engine 3.15.6 → 3.15.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.
- package/dist/cjs/index.js +24 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +24 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -9561,6 +9561,7 @@ function matchMediaDescriptionsInAnswer(parsedOffer, parsedAnswer) {
|
|
|
9561
9561
|
const fakeCorrespondingDescription = deepCopy(startingMediaDescription);
|
|
9562
9562
|
fakeCorrespondingDescription.mid = offerMediaDescription.mid;
|
|
9563
9563
|
fakeCorrespondingDescription.simulcast = undefined;
|
|
9564
|
+
fakeCorrespondingDescription.bandwidth = undefined;
|
|
9564
9565
|
if (offerMediaDescription.direction === 'sendrecv' ||
|
|
9565
9566
|
offerMediaDescription.direction === 'sendonly') {
|
|
9566
9567
|
fakeCorrespondingDescription.direction = 'recvonly';
|
|
@@ -14487,8 +14488,14 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __await
|
|
|
14487
14488
|
};
|
|
14488
14489
|
yield Promise.all([...sendTransceivers.entries()].map(([mediaType, transceiver]) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14489
14490
|
var _a;
|
|
14491
|
+
const report = [];
|
|
14492
|
+
(yield transceiver.getStats()).forEach((senderStats) => {
|
|
14493
|
+
if (senderStats.type === 'outbound-rtp') {
|
|
14494
|
+
report.push(Object.assign(Object.assign({}, senderStats), { requestedBitrate: transceiver.getRequestedBitrate(senderStats.ssrc), requestedFrameSize: transceiver.getRequestedFrameSize(senderStats.ssrc) }));
|
|
14495
|
+
}
|
|
14496
|
+
});
|
|
14490
14497
|
const item = {
|
|
14491
|
-
report
|
|
14498
|
+
report,
|
|
14492
14499
|
mid: transceiver.mid,
|
|
14493
14500
|
csi: transceiver.csi,
|
|
14494
14501
|
currentDirection: 'sendonly',
|
|
@@ -14510,8 +14517,14 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __await
|
|
|
14510
14517
|
yield Promise.all([...recvTransceivers.entries()].map(([mediaType, transceivers]) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14511
14518
|
return Promise.all(transceivers.map((t) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14512
14519
|
var _b, _c;
|
|
14520
|
+
const report = [];
|
|
14521
|
+
(yield t.getStats()).forEach((receiverStats) => {
|
|
14522
|
+
if (receiverStats.type === 'inbound-rtp') {
|
|
14523
|
+
report.push(Object.assign(Object.assign({}, receiverStats), { requestedBitrate: t.requestedBitrate, requestedFrameSize: t.requestedFrameSize }));
|
|
14524
|
+
}
|
|
14525
|
+
});
|
|
14513
14526
|
const item = {
|
|
14514
|
-
report
|
|
14527
|
+
report,
|
|
14515
14528
|
mid: (_b = t.receiveSlot.id) === null || _b === void 0 ? void 0 : _b.mid,
|
|
14516
14529
|
csi: t.receiveSlot.currentRxCsi,
|
|
14517
14530
|
currentDirection: 'recvonly',
|
|
@@ -15228,12 +15241,16 @@ SCTP Max Message Size: ${maxMessageSize}`);
|
|
|
15228
15241
|
streamRequests.forEach((sr) => {
|
|
15229
15242
|
var _a;
|
|
15230
15243
|
const isAffectedInStreamRequest = (t) => sr.receiveSlots.some((rs) => rs.id && compareStreamIds(rs.id, t.receiverId));
|
|
15231
|
-
|
|
15232
|
-
.get(mediaType)) === null || _a === void 0 ? void 0 : _a.filter(isAffectedInStreamRequest);
|
|
15233
|
-
affectedTransceivers === null || affectedTransceivers === void 0 ? void 0 : affectedTransceivers.forEach((t) => {
|
|
15244
|
+
(_a = this.recvTransceivers.get(mediaType)) === null || _a === void 0 ? void 0 : _a.forEach((t) => {
|
|
15234
15245
|
var _a, _b;
|
|
15235
|
-
t
|
|
15236
|
-
|
|
15246
|
+
if (isAffectedInStreamRequest(t)) {
|
|
15247
|
+
t.requestedBitrate = sr.maxPayloadBitsPerSecond;
|
|
15248
|
+
t.requestedFrameSize = (_b = (_a = sr.codecInfos[0]) === null || _a === void 0 ? void 0 : _a.h264) === null || _b === void 0 ? void 0 : _b.maxFs;
|
|
15249
|
+
}
|
|
15250
|
+
else {
|
|
15251
|
+
t.requestedBitrate = undefined;
|
|
15252
|
+
t.requestedFrameSize = undefined;
|
|
15253
|
+
}
|
|
15237
15254
|
});
|
|
15238
15255
|
});
|
|
15239
15256
|
};
|