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

update components

This commit is contained in:
Luke Pulverenti 2016-02-29 23:23:40 -05:00
parent 54030c9448
commit 5466e3660a
4 changed files with 51 additions and 10 deletions

View file

@ -15,12 +15,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.1.10",
"_release": "1.1.10",
"version": "1.1.11",
"_release": "1.1.11",
"_resolution": {
"type": "version",
"tag": "1.1.10",
"commit": "80b28a8a69cb1ff8269b1443b7982be7c0c5bc8a"
"tag": "1.1.11",
"commit": "6ce06fe70a6ae8cdc7c54db290fe192d4cf9656d"
},
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "~1.1.5",

View file

@ -0,0 +1,41 @@
define(['appStorage'], function (appStorage) {
function getKey(name, userId) {
if (userId) {
name = userId + '-' + name;
}
return name;
}
function get(name, userId) {
return appStorage.getItem(getKey(name, userId));
}
function set(name, value, userId) {
appStorage.setItem(getKey(name, userId), value);
}
return {
enableAutomaticBitrateDetection: function (val) {
if (val != null) {
set('enableAutomaticBitrateDetection', val.toString());
}
return get('enableAutomaticBitrateDetection') != 'false';
},
maxStreamingBitrate: function (val) {
if (val != null) {
set('preferredVideoBitrate', val);
}
return parseInt(get('preferredVideoBitrate') || '') || 1500000;
},
set: set,
get: get
};
});