add more dlna options

This commit is contained in:
Luke Pulverenti 2014-03-23 16:49:05 -04:00
parent 09341371fe
commit 1bd638a932
2 changed files with 15 additions and 1 deletions

View File

@ -21,6 +21,16 @@
<input type="checkbox" id="chkEnablePlayTo" data-mini="true" />
<div class="fieldDescription">Media Browser can detect devices within your network and offer the ability to remote control them.</div>
</li>
<li>
<label for="chkEnableDlnaDebugLogging">Enable DLNA debug logging</label>
<input type="checkbox" id="chkEnableDlnaDebugLogging" data-mini="true" />
<div class="fieldDescription">This will create large log files and should only be used as needed for troubleshooting purposes.</div>
</li>
<li>
<label for="txtClientDiscoveryInterval">Client discovery interval (seconds)</label>
<input type="number" id="txtClientDiscoveryInterval" data-mini="true" min="1" max="300" />
<div class="fieldDescription">Determines the duration in seconds of the interval between SSDP searches performed by Media Browser.</div>
</li>
<li>
<button type="submit" data-theme="b" data-icon="check">
Save

View File

@ -3,7 +3,9 @@
function loadPage(page, config) {
$('#chkEnablePlayTo', page).checked(config.DlnaOptions.EnablePlayTo).checkboxradio("refresh");
$('#chkEnableDlnaDebugLogging', page).checked(config.DlnaOptions.EnableDebugLogging).checkboxradio("refresh");
$('#txtClientDiscoveryInterval', page).val(config.DlnaOptions.ClientDiscoveryIntervalSeconds);
Dashboard.hideLoadingMsg();
}
@ -30,6 +32,8 @@
ApiClient.getServerConfiguration().done(function (config) {
config.DlnaOptions.EnablePlayTo = $('#chkEnablePlayTo', form).checked();
config.DlnaOptions.EnableDebugLogging = $('#chkEnableDlnaDebugLogging', form).checked();
config.DlnaOptions.ClientDiscoveryIntervalSeconds = $('#txtClientDiscoveryInterval', form).val();
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
});