diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 467d17caae..c87ab0c92b 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -81,6 +81,7 @@ - [ntarelix](https://github.com/ntarelix) - [András Maróy](https://github.com/andrasmaroy) - [Chris-Codes-It](https://github.com/Chris-Codes-It) +- [Vedant](https://github.com/viktory36) ## Emby Contributors diff --git a/src/scripts/browserDeviceProfile.js b/src/scripts/browserDeviceProfile.js index fb42980fa7..bb1d2b4d4f 100644 --- a/src/scripts/browserDeviceProfile.js +++ b/src/scripts/browserDeviceProfile.js @@ -1156,6 +1156,24 @@ export default function (options) { Conditions: h264CodecProfileConditions }); + 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. + profile.CodecProfiles.push({ + Type: 'Video', + Container: '-mp4', + Codec: 'hevc', + Conditions: [ + { + Condition: 'EqualsAny', + Property: 'VideoRangeType', + Value: 'SDR|HDR10|HLG', + IsRequired: false + } + ] + }); + } + profile.CodecProfiles.push({ Type: 'Video', Codec: 'hevc',