mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add support for DoVi Profile 10
Profile 10 spec covers DoVi video with and without the fallback layer. For now, once a device reports support for dav1.10, it is assumed that the device supports them all. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
708b1654d2
commit
6660f57d98
1 changed files with 9 additions and 0 deletions
|
@ -262,6 +262,11 @@ function supportedDolbyVisionProfilesHevc(videoTestElement) {
|
||||||
return supportedProfiles;
|
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) {
|
function getDirectPlayProfileForVideoContainer(container, videoAudioCodecs, videoTestElement, options) {
|
||||||
let supported = false;
|
let supported = false;
|
||||||
let profileContainer = container;
|
let profileContainer = container;
|
||||||
|
@ -1067,6 +1072,10 @@ export default function (options) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (supportsDolbyVision(options) && supportedDolbyVisionProfileAv1(videoTestElement)) {
|
||||||
|
av1VideoRangeTypes += '|DOVI|DOVIWithHDR10|DOVIWithHLG|DOVIWithSDR';
|
||||||
|
}
|
||||||
|
|
||||||
const h264CodecProfileConditions = [
|
const h264CodecProfileConditions = [
|
||||||
{
|
{
|
||||||
Condition: 'NotEquals',
|
Condition: 'NotEquals',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue