Update browserDeviceProfile with the new Dolby Vision types
This commit is contained in:
committed by
GeorgeH005
parent
49552d0c9d
commit
e4fdd3ee94
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user