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

Prioritise HEVC in TS containers on webOS

This commit is contained in:
FintasticMan 2024-05-28 21:05:08 +02:00
parent ea1cadf4b6
commit 4eeb79b3e1
No known key found for this signature in database
GPG key ID: A00F1AB6DB1ED386

View file

@ -619,6 +619,9 @@ export default function (options) {
&& (browser.edgeChromium || browser.safari || browser.tizen || browser.web0s || (browser.chrome && (!browser.android || browser.versionMajor >= 105)))) {
// Chromium used to support HEVC on Android but not via MSE
hlsInFmp4VideoCodecs.push('hevc');
if (browser.web0s) {
hlsInTsVideoCodecs.push('hevc');
}
}
if (canPlayH264(videoTestElement)) {
@ -629,7 +632,7 @@ export default function (options) {
if (canPlayHevc(videoTestElement, options)) {
mp4VideoCodecs.push('hevc');
if (browser.tizen || browser.web0s) {
if (browser.tizen) {
hlsInTsVideoCodecs.push('hevc');
}
}