@webex/web-client-media-engine 3.39.9 → 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 CHANGED
@@ -15520,7 +15520,8 @@ class SendOnlyTransceiver extends Transceiver {
15520
15520
  var _a, _b;
15521
15521
  const encodingParams = requestedIdEncodingParamsMap.get(index);
15522
15522
  encoding.active = !!encodingParams;
15523
- if (shouldUpdateSelectedCodec) {
15523
+ if (shouldUpdateSelectedCodec &&
15524
+ WebCapabilities.supportsEncodingCodec() === CapabilityState.CAPABLE) {
15524
15525
  encoding.codec = selectedCodec;
15525
15526
  }
15526
15527
  if (encodingParams) {
@@ -16199,10 +16200,14 @@ SCTP Max Message Size: ${maxMessageSize}`);
16199
16200
  });
16200
16201
  jmpSession.on(JmpSessionEvents.MediaRequestReceived, (data) => {
16201
16202
  logger.log(`MediaRequest received: ${JSON.stringify(data)}`);
16202
- this.updateRequestedStreams(mediaType, data.requests).then(() => {
16203
+ this.updateRequestedStreams(mediaType, data.requests)
16204
+ .then(() => {
16203
16205
  if (getMediaFamily(mediaType) === exports.MediaFamily.Video) {
16204
16206
  this.sendMediaRequestStatus(mediaType);
16205
16207
  }
16208
+ })
16209
+ .catch((error) => {
16210
+ logger.error(`Failed to update requested streams for ${mediaType}: ${error}`);
16206
16211
  });
16207
16212
  });
16208
16213
  jmpSession.on(JmpSessionEvents.ActiveSpeaker, (data) => {