mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update browserDeviceProfile with the new Dolby Vision types
This commit is contained in:
parent
49552d0c9d
commit
e4fdd3ee94
1 changed files with 2 additions and 5 deletions
|
@ -217,9 +217,6 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) {
|
|||
if (videoTestElement
|
||||
.canPlayType('video/mp4; codecs="dvh1.05.09"')
|
||||
.replace(/no/, '')) supportedProfiles.push(5);
|
||||
if ( videoTestElement
|
||||
.canPlayType('video/mp4; codecs="dvh1.07.09"')
|
||||
.replace(/no/, '')) supportedProfiles.push(7);
|
||||
if ( videoTestElement
|
||||
.canPlayType('video/mp4; codecs="dvh1.08.09"')
|
||||
.replace(/no/, '')) supportedProfiles.push(8);
|
||||
|
@ -953,11 +950,11 @@ export default function (options) {
|
|||
|
||||
if (supportsDolbyVision(options)) {
|
||||
const profiles = supportedDolbyVisionProfilesHevc(videoTestElement);
|
||||
if (profiles.includes(5) || profiles.includes(7)) {
|
||||
if (profiles.includes(5)) {
|
||||
hevcVideoRangeTypes += '|DOVI';
|
||||
}
|
||||
if (profiles.includes(8)) {
|
||||
hevcVideoRangeTypes += '|DOVIWithHDR10|DOVIWithHLG';
|
||||
hevcVideoRangeTypes += '|DOVIWithHDR10|DOVIWithHLG|DOVIWithSDR';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue