mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-23 14:09:42 +00:00
For webOS, block DOVI on non mp4 containers
This commit is contained in:
parent
91cd6225c5
commit
d5c940dc84
@ -80,6 +80,7 @@
|
||||
- [Rasmus Krämer](https://github.com/rasmuslos)
|
||||
- [ntarelix](https://github.com/ntarelix)
|
||||
- [András Maróy](https://github.com/andrasmaroy)
|
||||
- [Vedant](https://github.com/viktory36)
|
||||
|
||||
## Emby Contributors
|
||||
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user