diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 6bca87c6d8..593076caa7 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -296,6 +296,11 @@ function supportedDolbyVisionProfileAv1(videoTestElement) { return videoTestElement.canPlayType?.('video/mp4; codecs="dav1.10.06"').replace(/no/, ''); } +function supportsAnamorphicVideo() { + // Tizen applies the aspect ratio correctly + return browser.tizenVersion >= 6; +} + function getDirectPlayProfileForVideoContainer(container, videoAudioCodecs, videoTestElement, options) { let supported = false; let profileContainer = container; @@ -1241,12 +1246,6 @@ export default function (options) { } const h264CodecProfileConditions = [ - { - Condition: 'NotEquals', - Property: 'IsAnamorphic', - Value: 'true', - IsRequired: false - }, { Condition: 'EqualsAny', Property: 'VideoProfile', @@ -1268,12 +1267,6 @@ export default function (options) { ]; const hevcCodecProfileConditions = [ - { - Condition: 'NotEquals', - Property: 'IsAnamorphic', - Value: 'true', - IsRequired: false - }, { Condition: 'EqualsAny', Property: 'VideoProfile', @@ -1304,12 +1297,6 @@ export default function (options) { ]; const av1CodecProfileConditions = [ - { - Condition: 'NotEquals', - Property: 'IsAnamorphic', - Value: 'true', - IsRequired: false - }, { Condition: 'EqualsAny', Property: 'VideoProfile', @@ -1330,6 +1317,29 @@ export default function (options) { } ]; + if (!supportsAnamorphicVideo()) { + h264CodecProfileConditions.push({ + Condition: 'NotEquals', + Property: 'IsAnamorphic', + Value: 'true', + IsRequired: false + }); + + hevcCodecProfileConditions.push({ + Condition: 'NotEquals', + Property: 'IsAnamorphic', + Value: 'true', + IsRequired: false + }); + + av1CodecProfileConditions.push({ + Condition: 'NotEquals', + Property: 'IsAnamorphic', + Value: 'true', + IsRequired: false + }); + } + if (!browser.edgeUwp && !browser.tizen && !browser.web0s) { h264CodecProfileConditions.push({ Condition: 'NotEquals',