mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Enable 'Prefer fMP4-HLS Container' by default on certain platforms
fMP4 is enabled by default only on verified patforms. This largely avoids transcoding HEVC and AV1, instead letting the client handle them. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
331cbac165
commit
2ea1599e94
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue