mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
bump dev version
This commit is contained in:
parent
6daced8387
commit
48a576778f
28 changed files with 443 additions and 326 deletions
55
dashboard-ui/scripts/appsettings.js
Normal file
55
dashboard-ui/scripts/appsettings.js
Normal file
|
@ -0,0 +1,55 @@
|
|||
(function (window, store) {
|
||||
|
||||
function update(key, val) {
|
||||
store.setItem(key, val);
|
||||
|
||||
Events.trigger(AppSettings, 'settingupdated', [key]);
|
||||
}
|
||||
|
||||
window.AppSettings = {
|
||||
|
||||
maxStreamingBitrate: function (val) {
|
||||
|
||||
if (val != null) {
|
||||
update('preferredVideoBitrate', val);
|
||||
}
|
||||
|
||||
return parseInt(store.getItem('preferredVideoBitrate') || '') || 1500000;
|
||||
},
|
||||
maxChromecastBitrate: function (val) {
|
||||
|
||||
if (val != null) {
|
||||
update('chromecastBitrate', val);
|
||||
}
|
||||
|
||||
return parseInt(store.getItem('chromecastBitrate') || '') || 3000000;
|
||||
},
|
||||
enableExternalPlayers: function (val) {
|
||||
|
||||
if (val != null) {
|
||||
update('externalplayers', val.toString());
|
||||
}
|
||||
|
||||
return store.getItem('externalplayers') == 'true';
|
||||
},
|
||||
enableItemPreviews: function (val) {
|
||||
|
||||
if (val != null) {
|
||||
update('enableItemPreviews', val.toString());
|
||||
}
|
||||
|
||||
return store.getItem('enableItemPreviews') != 'false';
|
||||
},
|
||||
enableFullScreen: function (val) {
|
||||
|
||||
if (val != null) {
|
||||
update('enableFullScreen', val.toString());
|
||||
}
|
||||
|
||||
return store.getItem('enableFullScreen') == 'true';
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
})(window, window.appStorage);
|
Loading…
Add table
Add a link
Reference in a new issue