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

unify appSettings

This commit is contained in:
Luke Pulverenti 2016-03-01 01:02:03 -05:00
parent 5466e3660a
commit 87e23915c8
21 changed files with 208 additions and 408 deletions

View file

@ -1,4 +1,4 @@
(function () {
define(['appSettings'], function (appSettings) {
function createVideoPlayer(self) {
@ -152,7 +152,7 @@
})[0];
var videoWidth = videoStream ? videoStream.Width : null;
var options = qualityoptions.getVideoQualityOptions(AppSettings.maxStreamingBitrate(), videoWidth);
var options = qualityoptions.getVideoQualityOptions(appSettings.maxStreamingBitrate(), videoWidth);
if (isStatic) {
options[0].name = "Direct";
@ -602,8 +602,8 @@
self.onQualityOptionSelected = function (bitrate) {
AppSettings.maxStreamingBitrate(bitrate);
AppSettings.enableAutomaticBitrateDetection(false);
appSettings.maxStreamingBitrate(bitrate);
appSettings.enableAutomaticBitrateDetection(false);
self.changeStream(self.getCurrentTicks(), {
Bitrate: bitrate
@ -1271,4 +1271,4 @@
createVideoPlayer(MediaPlayer);
})();
});