diff --git a/lib/util/stream_utils.js b/lib/util/stream_utils.js index 9f3ffb96ab..8dc7de6105 100644 --- a/lib/util/stream_utils.js +++ b/lib/util/stream_utils.js @@ -450,12 +450,16 @@ shaka.util.StreamUtils = class { if (!MediaSource.isTypeSupported(audioFullType)) { return false; } + // Update the codec string with the (possibly) converted codecs. + videoCodecs = [videoCodecs, audioCodecs].join(','); } const fullType = shaka.util.MimeUtils.getFullOrConvertedType( video.mimeType, videoCodecs, ContentType.VIDEO); if (!MediaSource.isTypeSupported(fullType)) { return false; } + // Update the codec string with the (possibly) converted codecs. + video.codecs = videoCodecs; } const audio = variant.audio; if (audio) { @@ -466,6 +470,8 @@ shaka.util.StreamUtils = class { if (!MediaSource.isTypeSupported(fullType)) { return false; } + // Update the codec string with the (possibly) converted codecs. + audio.codecs = codecs; } // See: https://github.com/shaka-project/shaka-player/issues/3380