@webex/web-client-media-engine 3.38.0 → 3.38.1

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
@@ -16246,7 +16246,14 @@ SCTP Max Message Size: ${maxMessageSize}`);
16246
16246
  return;
16247
16247
  }
16248
16248
  const id = ids[0];
16249
- const codecInfo = codecInfos[0];
16249
+ let codecInfo = codecInfos[0];
16250
+ if (codecInfos.length > 1) {
16251
+ const av1Codec = codecInfos.find((c) => c.av1);
16252
+ if (av1Codec) {
16253
+ codecInfo = av1Codec;
16254
+ logger.info(`Preferring AV1 (payloadType=${codecInfo.payloadType}) over first codec in request`);
16255
+ }
16256
+ }
16250
16257
  if (mediaType === exports.MediaType.VideoSlides && selectedPayloadType === undefined) {
16251
16258
  selectedPayloadType = codecInfo.payloadType;
16252
16259
  }