Merge pull request #543 from whiteowl3/patch-1

This commit is contained in:
Neil Burrows 2022-03-30 21:19:22 +01:00 committed by GitHub
commit 5bf3a68634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,10 @@ function getDeviceProfile() as object
tsVideoCodecs = "h264"
end if
if di.CanDecodeVideo({ Codec: "hevc" }).Result = true
tsVideoCodecs = tsVideoCodecs + ",h265,hevc"
end if
if di.CanDecodeAudio({ Codec: "ac3" }).result
tsAudioCodecs = "aac,ac3"
else
@ -100,18 +104,6 @@ function getDeviceProfile() as object
],
"ContainerProfiles": [],
"CodecProfiles": [
{
"Type": "VideoAudio",
"Codec": "aac",
"Conditions": [
{
"Condition": "Equals",
"Property": "IsSecondaryAudio",
"Value": "false",
"IsRequired": false
}
]
},
{
"Type": "VideoAudio",
"Codec": DirectPlayProfile[1].AudioCodec, ' Use supported MKV Audio list
@ -155,6 +147,10 @@ function getDeviceProfile() as object
{
"Format": "ttml",
"Method": "External"
},
{
"Format": "sub",
"Method": "External"
}
]
}
@ -258,4 +254,4 @@ function GetDirectPlayProfiles() as object
}
]
end function
end function