@webex/web-client-media-engine 3.38.0 → 3.38.2
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 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +8 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -3
package/dist/esm/index.js
CHANGED
|
@@ -16242,7 +16242,14 @@ SCTP Max Message Size: ${maxMessageSize}`);
|
|
|
16242
16242
|
return;
|
|
16243
16243
|
}
|
|
16244
16244
|
const id = ids[0];
|
|
16245
|
-
|
|
16245
|
+
let codecInfo = codecInfos[0];
|
|
16246
|
+
if (codecInfos.length > 1) {
|
|
16247
|
+
const av1Codec = codecInfos.find((c) => c.av1);
|
|
16248
|
+
if (av1Codec) {
|
|
16249
|
+
codecInfo = av1Codec;
|
|
16250
|
+
logger.info(`Preferring AV1 (payloadType=${codecInfo.payloadType}) over first codec in request`);
|
|
16251
|
+
}
|
|
16252
|
+
}
|
|
16246
16253
|
if (mediaType === MediaType.VideoSlides && selectedPayloadType === undefined) {
|
|
16247
16254
|
selectedPayloadType = codecInfo.payloadType;
|
|
16248
16255
|
}
|