Backport pull request #7526 from jellyfin-web/release-10.11.z
Allow to play Dolby Vision with fallback on webOS Original-merge: cb65a1899877dd5aba58f8e95ff02d32da295c10 Merged-by: thornbill <thornbill@users.noreply.github.com> Backported-by: thornbill <thornbill@users.noreply.github.com>
This commit is contained in:
committed by
thornbill
parent
ce5b6e9f6f
commit
16c72ac1cc
@@ -1190,7 +1190,9 @@ export default function (options) {
|
|||||||
let vp9VideoRangeTypes = 'SDR';
|
let vp9VideoRangeTypes = 'SDR';
|
||||||
let av1VideoRangeTypes = 'SDR';
|
let av1VideoRangeTypes = 'SDR';
|
||||||
|
|
||||||
if (browser.tizenVersion >= 3) {
|
const isWebOsWithoutDolbyVision = browser.web0s && !supportsDolbyVision(options);
|
||||||
|
|
||||||
|
if (browser.tizenVersion >= 3 || isWebOsWithoutDolbyVision) {
|
||||||
hevcVideoRangeTypes += '|DOVIWithSDR';
|
hevcVideoRangeTypes += '|DOVIWithSDR';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1200,8 +1202,9 @@ export default function (options) {
|
|||||||
vp9VideoRangeTypes += '|HDR10|HDR10Plus';
|
vp9VideoRangeTypes += '|HDR10|HDR10Plus';
|
||||||
av1VideoRangeTypes += '|HDR10|HDR10Plus';
|
av1VideoRangeTypes += '|HDR10|HDR10Plus';
|
||||||
|
|
||||||
if (browser.tizenVersion >= 3 || browser.vidaa) {
|
if (browser.tizenVersion >= 3 || browser.vidaa || isWebOsWithoutDolbyVision) {
|
||||||
// Tizen TV does not support Dolby Vision at all, but it can safely play the HDR fallback.
|
// Tizen TV does not support Dolby Vision at all, but it can safely play the HDR fallback.
|
||||||
|
// LG TVs that don't support Dolby Vision still can play the HDR fallback without issues.
|
||||||
// Advertising the support so that the server doesn't have to remux.
|
// Advertising the support so that the server doesn't have to remux.
|
||||||
hevcVideoRangeTypes += '|DOVIWithHDR10|DOVIWithHDR10Plus|DOVIWithEL|DOVIWithELHDR10Plus|DOVIInvalid';
|
hevcVideoRangeTypes += '|DOVIWithHDR10|DOVIWithHDR10Plus|DOVIWithEL|DOVIWithELHDR10Plus|DOVIInvalid';
|
||||||
// Although no official tools exist to create AV1+DV files yet, some of our users managed to use community tools to create such files.
|
// Although no official tools exist to create AV1+DV files yet, some of our users managed to use community tools to create such files.
|
||||||
@@ -1215,7 +1218,7 @@ export default function (options) {
|
|||||||
vp9VideoRangeTypes += '|HLG';
|
vp9VideoRangeTypes += '|HLG';
|
||||||
av1VideoRangeTypes += '|HLG';
|
av1VideoRangeTypes += '|HLG';
|
||||||
|
|
||||||
if (browser.tizenVersion >= 3) {
|
if (browser.tizenVersion >= 3 || isWebOsWithoutDolbyVision) {
|
||||||
hevcVideoRangeTypes += '|DOVIWithHLG';
|
hevcVideoRangeTypes += '|DOVIWithHLG';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user