mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add more dlna options
This commit is contained in:
parent
09341371fe
commit
1bd638a932
2 changed files with 15 additions and 1 deletions
|
@ -21,6 +21,16 @@
|
||||||
<input type="checkbox" id="chkEnablePlayTo" data-mini="true" />
|
<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>
|
<div class="fieldDescription">Media Browser can detect devices within your network and offer the ability to remote control them.</div>
|
||||||
</li>
|
</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>
|
<li>
|
||||||
<button type="submit" data-theme="b" data-icon="check">
|
<button type="submit" data-theme="b" data-icon="check">
|
||||||
Save
|
Save
|
||||||
|
|
|
@ -3,7 +3,9 @@
|
||||||
function loadPage(page, config) {
|
function loadPage(page, config) {
|
||||||
|
|
||||||
$('#chkEnablePlayTo', page).checked(config.DlnaOptions.EnablePlayTo).checkboxradio("refresh");
|
$('#chkEnablePlayTo', page).checked(config.DlnaOptions.EnablePlayTo).checkboxradio("refresh");
|
||||||
|
$('#chkEnableDlnaDebugLogging', page).checked(config.DlnaOptions.EnableDebugLogging).checkboxradio("refresh");
|
||||||
|
$('#txtClientDiscoveryInterval', page).val(config.DlnaOptions.ClientDiscoveryIntervalSeconds);
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,6 +32,8 @@
|
||||||
ApiClient.getServerConfiguration().done(function (config) {
|
ApiClient.getServerConfiguration().done(function (config) {
|
||||||
|
|
||||||
config.DlnaOptions.EnablePlayTo = $('#chkEnablePlayTo', form).checked();
|
config.DlnaOptions.EnablePlayTo = $('#chkEnablePlayTo', form).checked();
|
||||||
|
config.DlnaOptions.EnableDebugLogging = $('#chkEnableDlnaDebugLogging', form).checked();
|
||||||
|
config.DlnaOptions.ClientDiscoveryIntervalSeconds = $('#txtClientDiscoveryInterval', form).val();
|
||||||
|
|
||||||
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
ApiClient.updateServerConfiguration(config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue