1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #6029 from nyanmisaka/dovi-profile10

Add support for DoVi Profile 10
This commit is contained in:
Bill Thornton 2024-09-20 13:45:52 -04:00 committed by GitHub
commit dafaf4a967
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -262,6 +262,11 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) {
return supportedProfiles;
}
function supportedDolbyVisionProfileAv1(videoTestElement) {
// Profile 10 4k@24fps
return videoTestElement.canPlayType?.('video/mp4; codecs="dav1.10.06"').replace(/no/, '');
}
function getDirectPlayProfileForVideoContainer(container, videoAudioCodecs, videoTestElement, options) {
let supported = false;
let profileContainer = container;
@ -1103,6 +1108,10 @@ export default function (options) {
if (profiles.includes(8)) {
hevcVideoRangeTypes += '|DOVIWithHDR10|DOVIWithHLG|DOVIWithSDR';
}
if (supportedDolbyVisionProfileAv1(videoTestElement)) {
av1VideoRangeTypes += '|DOVI|DOVIWithHDR10|DOVIWithHLG|DOVIWithSDR';
}
}
const h264CodecProfileConditions = [