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

Merge pull request #5621 from FintasticMan/webos_prioritise_hevc

Prioritise HEVC over H264 in HLS TS streams on webOS
This commit is contained in:
Bill Thornton 2024-06-05 14:07:58 -04:00 committed by GitHub
commit 7865170eb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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.tizen || browser.web0s) {
hlsInTsVideoCodecs.push('hevc');
}
}
if (canPlayH264(videoTestElement)) {
@ -629,9 +632,6 @@ export default function (options) {
if (canPlayHevc(videoTestElement, options)) {
mp4VideoCodecs.push('hevc');
if (browser.tizen || browser.web0s) {
hlsInTsVideoCodecs.push('hevc');
}
}
if (supportsMpeg2Video()) {