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

support more dlna resource properties

This commit is contained in:
Luke Pulverenti 2014-04-18 13:16:25 -04:00
parent 76f79c27e5
commit ec163807cf
4 changed files with 16 additions and 8 deletions

View file

@ -934,16 +934,16 @@ progress {
z-index: 1000; z-index: 1000;
} }
.notPlayingSession .sessionNowPlayingContent { .activeSession:not(.playingSession) .sessionNowPlayingContent {
display: none; display: none;
} }
.notPlayingSession .sessionNowPlayingInnerContent { .activeSession:not(.playingSession) .sessionNowPlayingInnerContent {
background-color: #f0f0f0; background-color: #f0f0f0;
color: #000; color: #000;
} }
.notPlayingSession .sessionUserInfo, .notPlayingSession .sessionNowPlayingInfo { .activeSession:not(.playingSession) .sessionUserInfo, .activeSession:not(.playingSession) .sessionNowPlayingInfo {
bottom: 0; bottom: 0;
} }

View file

@ -40,6 +40,11 @@
<br /> <br />
<ul data-role="listview" class="ulForm"> <ul data-role="listview" class="ulForm">
<li>
<label for="txtDownMixAudioBoost">${LabelDownMixAudioScale}</label>
<input type="number" id="txtDownMixAudioBoost" pattern="[0-9]*" required="required" min=".5" max="3" step=".1" data-mini="true" />
<div class="fieldDescription">${LabelDownMixAudioScaleHelp}</div>
</li>
<li> <li>
<input type="checkbox" id="chkAllowUpscaling" name="chkAllowUpscaling" data-mini="true" /> <input type="checkbox" id="chkAllowUpscaling" name="chkAllowUpscaling" data-mini="true" />
<label for="chkAllowUpscaling">${OptionUpscaling}</label> <label for="chkAllowUpscaling">${OptionUpscaling}</label>

View file

@ -209,7 +209,7 @@
var nowPlayingItem = connection.NowPlayingItem; var nowPlayingItem = connection.NowPlayingItem;
var className = nowPlayingItem ? 'activeSession' : 'notPlayingSession activeSession'; var className = nowPlayingItem ? 'playingSession activeSession' : 'activeSession';
html += '<div class="' + className + '" id="' + rowId + '">'; html += '<div class="' + className + '" id="' + rowId + '">';
@ -400,9 +400,9 @@
var nowPlayingItem = session.NowPlayingItem; var nowPlayingItem = session.NowPlayingItem;
if (nowPlayingItem) { if (nowPlayingItem) {
row.removeClass('notPlayingSession'); row.addClass('playingSession');
} else { } else {
row.addClass('notPlayingSession'); row.removeClass('playingSession');
} }
$('.sessionUserName', row).html(DashboardPage.getUsersHtml(session)); $('.sessionUserName', row).html(DashboardPage.getUsersHtml(session));
@ -877,8 +877,8 @@ $(document).on('pageshow', "#dashboardPage", DashboardPage.onPageShow).on('pageh
return this; return this;
} }
return this.off('.sessionItemMenu').on('mouseenter.sessionItemMenu', '.activeSession', onHoverIn) return this.off('.sessionItemMenu').on('mouseenter.sessionItemMenu', '.playingSession', onHoverIn)
.on('mouseleave.sessionItemMenu', '.activeSession', onHoverOut); .on('mouseleave.sessionItemMenu', '.playingSession', onHoverOut);
}; };
})(jQuery, document, window); })(jQuery, document, window);

View file

@ -12,6 +12,8 @@
$('#chkAllowUpscaling', page).checked(config.AllowVideoUpscaling).checkboxradio("refresh"); $('#chkAllowUpscaling', page).checked(config.AllowVideoUpscaling).checkboxradio("refresh");
$('#txtDownMixAudioBoost', page).val(config.DownMixAudioBoost);
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
} }
@ -41,6 +43,7 @@
config.AllowVideoUpscaling = $('#chkAllowUpscaling', form).checked(); config.AllowVideoUpscaling = $('#chkAllowUpscaling', form).checked();
config.EnableDebugEncodingLogging = $('#chkEnableDebugEncodingLogging', form).checked(); config.EnableDebugEncodingLogging = $('#chkEnableDebugEncodingLogging', form).checked();
config.MediaEncodingQuality = $('.radioEncodingQuality:checked', form).val(); config.MediaEncodingQuality = $('.radioEncodingQuality:checked', form).val();
config.DownMixAudioBoost = $('#txtDownMixAudioBoost', form).val();
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult); ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
}); });