@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/esm/index.js
CHANGED
|
@@ -9557,6 +9557,7 @@ function matchMediaDescriptionsInAnswer(parsedOffer, parsedAnswer) {
|
|
|
9557
9557
|
const fakeCorrespondingDescription = deepCopy(startingMediaDescription);
|
|
9558
9558
|
fakeCorrespondingDescription.mid = offerMediaDescription.mid;
|
|
9559
9559
|
fakeCorrespondingDescription.simulcast = undefined;
|
|
9560
|
+
fakeCorrespondingDescription.bandwidth = undefined;
|
|
9560
9561
|
if (offerMediaDescription.direction === 'sendrecv' ||
|
|
9561
9562
|
offerMediaDescription.direction === 'sendonly') {
|
|
9562
9563
|
fakeCorrespondingDescription.direction = 'recvonly';
|
|
@@ -14483,8 +14484,14 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __await
|
|
|
14483
14484
|
};
|
|
14484
14485
|
yield Promise.all([...sendTransceivers.entries()].map(([mediaType, transceiver]) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14485
14486
|
var _a;
|
|
14487
|
+
const report = [];
|
|
14488
|
+
(yield transceiver.getStats()).forEach((senderStats) => {
|
|
14489
|
+
if (senderStats.type === 'outbound-rtp') {
|
|
14490
|
+
report.push(Object.assign(Object.assign({}, senderStats), { requestedBitrate: transceiver.getRequestedBitrate(senderStats.ssrc), requestedFrameSize: transceiver.getRequestedFrameSize(senderStats.ssrc) }));
|
|
14491
|
+
}
|
|
14492
|
+
});
|
|
14486
14493
|
const item = {
|
|
14487
|
-
report
|
|
14494
|
+
report,
|
|
14488
14495
|
mid: transceiver.mid,
|
|
14489
14496
|
csi: transceiver.csi,
|
|
14490
14497
|
currentDirection: 'sendonly',
|
|
@@ -14506,8 +14513,14 @@ const organizeTransceiverStats = (sendTransceivers, recvTransceivers) => __await
|
|
|
14506
14513
|
yield Promise.all([...recvTransceivers.entries()].map(([mediaType, transceivers]) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14507
14514
|
return Promise.all(transceivers.map((t) => __awaiter$1(void 0, void 0, void 0, function* () {
|
|
14508
14515
|
var _b, _c;
|
|
14516
|
+
const report = [];
|
|
14517
|
+
(yield t.getStats()).forEach((receiverStats) => {
|
|
14518
|
+
if (receiverStats.type === 'inbound-rtp') {
|
|
14519
|
+
report.push(Object.assign(Object.assign({}, receiverStats), { requestedBitrate: t.requestedBitrate, requestedFrameSize: t.requestedFrameSize }));
|
|
14520
|
+
}
|
|
14521
|
+
});
|
|
14509
14522
|
const item = {
|
|
14510
|
-
report
|
|
14523
|
+
report,
|
|
14511
14524
|
mid: (_b = t.receiveSlot.id) === null || _b === void 0 ? void 0 : _b.mid,
|
|
14512
14525
|
csi: t.receiveSlot.currentRxCsi,
|
|
14513
14526
|
currentDirection: 'recvonly',
|
|
@@ -15224,12 +15237,16 @@ SCTP Max Message Size: ${maxMessageSize}`);
|
|
|
15224
15237
|
streamRequests.forEach((sr) => {
|
|
15225
15238
|
var _a;
|
|
15226
15239
|
const isAffectedInStreamRequest = (t) => sr.receiveSlots.some((rs) => rs.id && compareStreamIds(rs.id, t.receiverId));
|
|
15227
|
-
|
|
15228
|
-
.get(mediaType)) === null || _a === void 0 ? void 0 : _a.filter(isAffectedInStreamRequest);
|
|
15229
|
-
affectedTransceivers === null || affectedTransceivers === void 0 ? void 0 : affectedTransceivers.forEach((t) => {
|
|
15240
|
+
(_a = this.recvTransceivers.get(mediaType)) === null || _a === void 0 ? void 0 : _a.forEach((t) => {
|
|
15230
15241
|
var _a, _b;
|
|
15231
|
-
t
|
|
15232
|
-
|
|
15242
|
+
if (isAffectedInStreamRequest(t)) {
|
|
15243
|
+
t.requestedBitrate = sr.maxPayloadBitsPerSecond;
|
|
15244
|
+
t.requestedFrameSize = (_b = (_a = sr.codecInfos[0]) === null || _a === void 0 ? void 0 : _a.h264) === null || _b === void 0 ? void 0 : _b.maxFs;
|
|
15245
|
+
}
|
|
15246
|
+
else {
|
|
15247
|
+
t.requestedBitrate = undefined;
|
|
15248
|
+
t.requestedFrameSize = undefined;
|
|
15249
|
+
}
|
|
15233
15250
|
});
|
|
15234
15251
|
});
|
|
15235
15252
|
};
|