mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Backport pull request #5553 from jellyfin-web/release-10.9.z
Fix Dolby Vision playback on webOS
Original-merge: 86ff77924e
Merged-by: thornbill <thornbill@users.noreply.github.com>
Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
cf6eaa6b92
commit
a3c0fb05c3
2 changed files with 13 additions and 10 deletions
|
@ -247,9 +247,13 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) {
|
|||
.replace(/no/, '')) {
|
||||
supportedProfiles.push(5);
|
||||
}
|
||||
if (videoTestElement
|
||||
.canPlayType('video/mp4; codecs="dvh1.08.09"')
|
||||
.replace(/no/, '')) {
|
||||
if (
|
||||
videoTestElement
|
||||
.canPlayType('video/mp4; codecs="dvh1.08.09"')
|
||||
.replace(/no/, '')
|
||||
// LG TVs from at least 2020 onwards should support profile 8, but they don't report it.
|
||||
|| (browser.web0sVersion >= 4)
|
||||
) {
|
||||
supportedProfiles.push(8);
|
||||
}
|
||||
}
|
||||
|
@ -1259,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
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue