@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/esm/index.js CHANGED
@@ -15516,7 +15516,8 @@ class SendOnlyTransceiver extends Transceiver {
15516
15516
  var _a, _b;
15517
15517
  const encodingParams = requestedIdEncodingParamsMap.get(index);
15518
15518
  encoding.active = !!encodingParams;
15519
- if (shouldUpdateSelectedCodec) {
15519
+ if (shouldUpdateSelectedCodec &&
15520
+ WebCapabilities.supportsEncodingCodec() === CapabilityState.CAPABLE) {
15520
15521
  encoding.codec = selectedCodec;
15521
15522
  }
15522
15523
  if (encodingParams) {
@@ -16195,10 +16196,14 @@ SCTP Max Message Size: ${maxMessageSize}`);
16195
16196
  });
16196
16197
  jmpSession.on(JmpSessionEvents.MediaRequestReceived, (data) => {
16197
16198
  logger.log(`MediaRequest received: ${JSON.stringify(data)}`);
16198
- this.updateRequestedStreams(mediaType, data.requests).then(() => {
16199
+ this.updateRequestedStreams(mediaType, data.requests)
16200
+ .then(() => {
16199
16201
  if (getMediaFamily(mediaType) === MediaFamily.Video) {
16200
16202
  this.sendMediaRequestStatus(mediaType);
16201
16203
  }
16204
+ })
16205
+ .catch((error) => {
16206
+ logger.error(`Failed to update requested streams for ${mediaType}: ${error}`);
16202
16207
  });
16203
16208
  });
16204
16209
  jmpSession.on(JmpSessionEvents.ActiveSpeaker, (data) => {