@webex/web-client-media-engine 3.39.8 → 3.39.10
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 +8 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -7
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -10378,11 +10378,7 @@ function hasCodec(codecName, mLine) {
|
|
|
10378
10378
|
return [...mLine.codecs.values()].some((ci) => { var _a; return ((_a = ci.name) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === codecName.toLowerCase(); });
|
|
10379
10379
|
}
|
|
10380
10380
|
|
|
10381
|
-
const simulcastMaxFrameSizes =
|
|
10382
|
-
0: '240',
|
|
10383
|
-
1: '2304',
|
|
10384
|
-
2: '8160',
|
|
10385
|
-
};
|
|
10381
|
+
const simulcastMaxFrameSizes = ['240', '2304', '8160'];
|
|
10386
10382
|
|
|
10387
10383
|
class JmpLine extends Line {
|
|
10388
10384
|
static fromSdpLine(line) {
|
|
@@ -15520,7 +15516,8 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
15520
15516
|
var _a, _b;
|
|
15521
15517
|
const encodingParams = requestedIdEncodingParamsMap.get(index);
|
|
15522
15518
|
encoding.active = !!encodingParams;
|
|
15523
|
-
if (shouldUpdateSelectedCodec
|
|
15519
|
+
if (shouldUpdateSelectedCodec &&
|
|
15520
|
+
WebCapabilities.supportsEncodingCodec() === CapabilityState.CAPABLE) {
|
|
15524
15521
|
encoding.codec = selectedCodec;
|
|
15525
15522
|
}
|
|
15526
15523
|
if (encodingParams) {
|
|
@@ -16199,10 +16196,14 @@ SCTP Max Message Size: ${maxMessageSize}`);
|
|
|
16199
16196
|
});
|
|
16200
16197
|
jmpSession.on(JmpSessionEvents.MediaRequestReceived, (data) => {
|
|
16201
16198
|
logger.log(`MediaRequest received: ${JSON.stringify(data)}`);
|
|
16202
|
-
this.updateRequestedStreams(mediaType, data.requests)
|
|
16199
|
+
this.updateRequestedStreams(mediaType, data.requests)
|
|
16200
|
+
.then(() => {
|
|
16203
16201
|
if (getMediaFamily(mediaType) === MediaFamily.Video) {
|
|
16204
16202
|
this.sendMediaRequestStatus(mediaType);
|
|
16205
16203
|
}
|
|
16204
|
+
})
|
|
16205
|
+
.catch((error) => {
|
|
16206
|
+
logger.error(`Failed to update requested streams for ${mediaType}: ${error}`);
|
|
16206
16207
|
});
|
|
16207
16208
|
});
|
|
16208
16209
|
jmpSession.on(JmpSessionEvents.ActiveSpeaker, (data) => {
|