Add user-configurable switch for hi10p on safari
This commit is contained in:
@@ -1281,7 +1281,7 @@ export default function (options) {
|
||||
});
|
||||
}
|
||||
|
||||
if (browser.safari && browser.version >= 17.5) {
|
||||
if (browser.safari && appSettings.enableHi10p()) {
|
||||
profile.CodecProfiles.push({
|
||||
Type: 'Video',
|
||||
Container: 'hls',
|
||||
|
||||
@@ -182,6 +182,19 @@ class AppSettings {
|
||||
return toBoolean(this.get('enableTrueHd'), false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get or set 'Enable H.264 High 10 Profile' state.
|
||||
* @param {boolean|undefined} val - Flag to enable 'Enable H.264 High 10 Profile' or undefined.
|
||||
* @return {boolean} 'Enable H.264 High 10 Profile' state.
|
||||
*/
|
||||
enableHi10p(val) {
|
||||
if (val !== undefined) {
|
||||
return this.set('enableHi10p', val.toString());
|
||||
}
|
||||
|
||||
return toBoolean(this.get('enableHi10p'), false);
|
||||
}
|
||||
|
||||
set(name, value, userId) {
|
||||
const currentValue = this.get(name, userId);
|
||||
localStorage.setItem(this.#getKey(name, userId), value);
|
||||
|
||||
Reference in New Issue
Block a user