Merge pull request #5901 from gnattu/safari-hi10p

This commit is contained in:
Bill Thornton
2024-09-07 21:53:01 -04:00
committed by GitHub
5 changed files with 48 additions and 0 deletions
+13
View File
@@ -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);