From 0b34c1812e1a354b546e39be395c8d86b069c747 Mon Sep 17 00:00:00 2001 From: George Haidos Date: Sat, 6 Jul 2024 00:15:34 +0300 Subject: [PATCH] Allow Dolby Vision in TS for WebOS Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- src/scripts/browserDeviceProfile.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index 9219978f8c..050c6a726e 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -1263,17 +1263,16 @@ export default function (options) { }); if (browser.web0s && supportsDolbyVision(options)) { - // Disallow direct playing of DOVI media in containers not mp4. - // This paired with the "Prefer fMP4-HLS Container" client playback setting enables DOVI playback on webOS. + // Disallow direct playing of DOVI media in containers not ts or mp4. profile.CodecProfiles.push({ Type: 'Video', - Container: '-mp4', + Container: '-mp4,ts', Codec: 'hevc', Conditions: [ { Condition: 'EqualsAny', Property: 'VideoRangeType', - Value: 'SDR|HDR10|HLG', + Value: hevcVideoRangeTypes.split('|').filter((v) => !v.startsWith('DOVI')).join('|'), IsRequired: false } ]