mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add DoVi fallback types as per pull #10469 on main repo
This commit is contained in:
parent
7ab9b653e6
commit
b4f912be46
1 changed files with 8 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
import browser from './browser';
|
||||
import appSettings from './settings/appSettings';
|
||||
import * as userSettings from './settings/userSettings';
|
||||
import browser from './browser';
|
||||
|
||||
function canPlayH264(videoTestElement) {
|
||||
return !!(videoTestElement.canPlayType?.('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/, ''));
|
||||
|
@ -932,14 +932,18 @@ export default function (options) {
|
|||
|
||||
if (supportsHdr10(options)) {
|
||||
hevcVideoRangeTypes += '|HDR10';
|
||||
// Should also be able to play DoVi with HDR10 fallback
|
||||
hevcVideoRangeTypes += '|DOVIWithHDR10'
|
||||
vp9VideoRangeTypes += '|HDR10';
|
||||
av1VideoRangeTypes += '|HDR10';
|
||||
}
|
||||
|
||||
if (supportsHlg(options)) {
|
||||
hevcVideoRangeTypes += '|HLG';
|
||||
vp9VideoRangeTypes += '|HLG';
|
||||
av1VideoRangeTypes += '|HLG';
|
||||
hevcVideoRangeTypes += "|HLG";
|
||||
// Should also be able to play DoVi with HLG fallback
|
||||
hevcVideoRangeTypes += "|DOVIWithHLG";
|
||||
vp9VideoRangeTypes += "|HLG";
|
||||
av1VideoRangeTypes += "|HLG";
|
||||
}
|
||||
|
||||
if (supportsDolbyVision(options) && canPlayDolbyVisionHevc(videoTestElement)) {
|
||||
|
@ -1250,4 +1254,3 @@ export default function (options) {
|
|||
|
||||
return profile;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue