mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Only enable webm for Safari 15 and 16
webm container is currently broken on Safari 17. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
076a5b4e2c
commit
c469211e53
1 changed files with 10 additions and 2 deletions
|
@ -619,12 +619,20 @@ export default function (options) {
|
|||
|
||||
if (canPlayVp9) {
|
||||
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)) {
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue