mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
unify appSettings
This commit is contained in:
parent
5466e3660a
commit
87e23915c8
21 changed files with 208 additions and 408 deletions
|
@ -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);
|
||||
|
||||
})();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue