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

Merge pull request #5289 from nyanmisaka/enable-fmp4-hls-by-default

This commit is contained in:
Bill Thornton 2024-03-22 19:03:57 -04:00 committed by GitHub
commit 56b9096db7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -68,7 +68,7 @@ function canPlayNativeHls() {
} }
function canPlayNativeHlsInFmp4() { function canPlayNativeHlsInFmp4() {
if (browser.tizenVersion >= 3 || browser.web0sVersion >= 3.5) { if (browser.tizenVersion >= 5 || browser.web0sVersion >= 3.5) {
return true; return true;
} }

View file

@ -1,4 +1,5 @@
import appSettings from './appSettings'; import appSettings from './appSettings';
import browser from '../browser';
import Events from '../../utils/events.ts'; import Events from '../../utils/events.ts';
import { toBoolean } from '../../utils/string.ts'; import { toBoolean } from '../../utils/string.ts';
@ -140,7 +141,8 @@ export class UserSettings {
return this.set('preferFmp4HlsContainer', val.toString(), false); return this.set('preferFmp4HlsContainer', val.toString(), false);
} }
return toBoolean(this.get('preferFmp4HlsContainer', false), false); // Enable it by default only for the platforms that play fMP4 for sure.
return toBoolean(this.get('preferFmp4HlsContainer', false), browser.safari || browser.firefox || browser.chrome || browser.edgeChromium);
} }
/** /**