1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Allow Dolby Vision in TS for WebOS

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
George Haidos 2024-07-06 00:15:34 +03:00
parent edd32297ee
commit 0b34c1812e
No known key found for this signature in database

View file

@ -1263,17 +1263,16 @@ export default function (options) {
}); });
if (browser.web0s && supportsDolbyVision(options)) { if (browser.web0s && supportsDolbyVision(options)) {
// Disallow direct playing of DOVI media in containers not mp4. // Disallow direct playing of DOVI media in containers not ts or mp4.
// This paired with the "Prefer fMP4-HLS Container" client playback setting enables DOVI playback on webOS.
profile.CodecProfiles.push({ profile.CodecProfiles.push({
Type: 'Video', Type: 'Video',
Container: '-mp4', Container: '-mp4,ts',
Codec: 'hevc', Codec: 'hevc',
Conditions: [ Conditions: [
{ {
Condition: 'EqualsAny', Condition: 'EqualsAny',
Property: 'VideoRangeType', Property: 'VideoRangeType',
Value: 'SDR|HDR10|HLG', Value: hevcVideoRangeTypes.split('|').filter((v) => !v.startsWith('DOVI')).join('|'),
IsRequired: false IsRequired: false
} }
] ]