mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5239 from nyanmisaka/av1-hls-on-safari
This commit is contained in:
commit
0fc819f538
1 changed files with 12 additions and 4 deletions
|
@ -573,8 +573,8 @@ export default function (options) {
|
||||||
const hlsInFmp4VideoCodecs = [];
|
const hlsInFmp4VideoCodecs = [];
|
||||||
|
|
||||||
if (canPlayAv1(videoTestElement)
|
if (canPlayAv1(videoTestElement)
|
||||||
&& !browser.mobile && (browser.edgeChromium || browser.firefox || browser.chrome)) {
|
&& (browser.safari || (!browser.mobile && (browser.edgeChromium || browser.firefox || browser.chrome)))) {
|
||||||
// disable av1 on mobile since it can be very slow software decoding
|
// disable av1 on non-safari mobile browsers since it can be very slow software decoding
|
||||||
hlsInFmp4VideoCodecs.push('av1');
|
hlsInFmp4VideoCodecs.push('av1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -619,12 +619,20 @@ export default function (options) {
|
||||||
|
|
||||||
if (canPlayVp9) {
|
if (canPlayVp9) {
|
||||||
mp4VideoCodecs.push('vp9');
|
mp4VideoCodecs.push('vp9');
|
||||||
webmVideoCodecs.push('vp9');
|
// webm support is unreliable on safari 17
|
||||||
|
if (!browser.safari
|
||||||
|
|| (browser.safari && browser.versionMajor >= 15 && browser.versionMajor < 17)) {
|
||||||
|
webmVideoCodecs.push('vp9');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canPlayAv1(videoTestElement)) {
|
if (canPlayAv1(videoTestElement)) {
|
||||||
mp4VideoCodecs.push('av1');
|
mp4VideoCodecs.push('av1');
|
||||||
webmVideoCodecs.push('av1');
|
// webm support is unreliable on safari 17
|
||||||
|
if (!browser.safari
|
||||||
|
|| (browser.safari && browser.versionMajor >= 15 && browser.versionMajor < 17)) {
|
||||||
|
webmVideoCodecs.push('av1');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canPlayVp8 || browser.tizen) {
|
if (canPlayVp8 || browser.tizen) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue