mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
probe live streams after opening
This commit is contained in:
parent
15f702af52
commit
beb21adecf
6 changed files with 43 additions and 9 deletions
|
@ -11,6 +11,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
|
<h2 style="text-align:center;" class="playlistName"></h2>
|
||||||
<div class="viewSettings">
|
<div class="viewSettings">
|
||||||
<div class="listTopPaging">
|
<div class="listTopPaging">
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,8 @@
|
||||||
var user = response2[0];
|
var user = response2[0];
|
||||||
var item = response3[0];
|
var item = response3[0];
|
||||||
|
|
||||||
|
$('.playlistName', page).html(item.Name);
|
||||||
|
|
||||||
_childrenItemsFunction = getItemsFunction(query);
|
_childrenItemsFunction = getItemsFunction(query);
|
||||||
|
|
||||||
currentItem = item;
|
currentItem = item;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
function loadPage(page, config) {
|
function loadPage(page, config) {
|
||||||
|
|
||||||
$('#txtSyncTempPath', page).val(config.TemporaryPath || '');
|
$('#txtSyncTempPath', page).val(config.TemporaryPath || '');
|
||||||
|
$('#txtUploadSpeedLimit', page).val(config.UploadSpeedLimitBytes / 1000000);
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
@ -51,6 +52,7 @@
|
||||||
ApiClient.getNamedConfiguration("sync").done(function (config) {
|
ApiClient.getNamedConfiguration("sync").done(function (config) {
|
||||||
|
|
||||||
config.TemporaryPath = $('#txtSyncTempPath', form).val();
|
config.TemporaryPath = $('#txtSyncTempPath', form).val();
|
||||||
|
config.UploadSpeedLimitBytes = parseInt(parseFloat(($('#txtUploadSpeedLimit', form).val() || '0')) * 1000000);
|
||||||
|
|
||||||
ApiClient.updateNamedConfiguration("sync", config).done(Dashboard.processServerConfigurationUpdateResult);
|
ApiClient.updateNamedConfiguration("sync", config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||||
});
|
});
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
$('#chkRemoteControlSharedDevices', page).checked(user.Policy.EnableSharedDeviceControl).checkboxradio("refresh");
|
$('#chkRemoteControlSharedDevices', page).checked(user.Policy.EnableSharedDeviceControl).checkboxradio("refresh");
|
||||||
$('#chkEnableRemoteControlOtherUsers', page).checked(user.Policy.EnableRemoteControlOfOtherUsers).checkboxradio("refresh");
|
$('#chkEnableRemoteControlOtherUsers', page).checked(user.Policy.EnableRemoteControlOfOtherUsers).checkboxradio("refresh");
|
||||||
|
|
||||||
$('#chkEnableMediaPlayback', page).checked(user.Policy.EnableMediaPlayback).checkboxradio("refresh");
|
|
||||||
$('#chkEnableDownloading', page).checked(user.Policy.EnableContentDownloading).checkboxradio("refresh");
|
$('#chkEnableDownloading', page).checked(user.Policy.EnableContentDownloading).checkboxradio("refresh");
|
||||||
|
|
||||||
$('#chkManageLiveTv', page).checked(user.Policy.EnableLiveTvManagement).checkboxradio("refresh");
|
$('#chkManageLiveTv', page).checked(user.Policy.EnableLiveTvManagement).checkboxradio("refresh");
|
||||||
|
@ -43,7 +42,11 @@
|
||||||
|
|
||||||
$('#chkDisableUserPreferences', page).checked((!user.Policy.EnableUserPreferenceAccess)).checkboxradio("refresh");
|
$('#chkDisableUserPreferences', page).checked((!user.Policy.EnableUserPreferenceAccess)).checkboxradio("refresh");
|
||||||
|
|
||||||
|
$('#chkEnableMediaPlayback', page).checked(user.Policy.EnableMediaPlayback).checkboxradio("refresh");
|
||||||
|
$('#chkEnableMediaPlaybackTranscoding', page).checked(user.Policy.EnableMediaPlaybackTranscoding).checkboxradio("refresh");
|
||||||
|
|
||||||
$('#chkEnableSync', page).checked(user.Policy.EnableSync).checkboxradio("refresh");
|
$('#chkEnableSync', page).checked(user.Policy.EnableSync).checkboxradio("refresh");
|
||||||
|
$('#chkEnableSyncTranscoding', page).checked(user.Policy.EnableSyncTranscoding).checkboxradio("refresh");
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
@ -82,9 +85,12 @@
|
||||||
user.Policy.EnableSharedDeviceControl = $('#chkRemoteControlSharedDevices', page).checked();
|
user.Policy.EnableSharedDeviceControl = $('#chkRemoteControlSharedDevices', page).checked();
|
||||||
|
|
||||||
user.Policy.EnableMediaPlayback = $('#chkEnableMediaPlayback', page).checked();
|
user.Policy.EnableMediaPlayback = $('#chkEnableMediaPlayback', page).checked();
|
||||||
|
user.Policy.EnableMediaPlaybackTranscoding = $('#chkEnableMediaPlaybackTranscoding', page).checked();
|
||||||
|
|
||||||
user.Policy.EnableContentDownloading = $('#chkEnableDownloading', page).checked();
|
user.Policy.EnableContentDownloading = $('#chkEnableDownloading', page).checked();
|
||||||
|
|
||||||
user.Policy.EnableSync = $('#chkEnableSync', page).checked();
|
user.Policy.EnableSync = $('#chkEnableSync', page).checked();
|
||||||
|
user.Policy.EnableSyncTranscoding = $('#chkEnableSyncTranscoding', page).checked();
|
||||||
|
|
||||||
ApiClient.updateUser(user).done(function () {
|
ApiClient.updateUser(user).done(function () {
|
||||||
|
|
||||||
|
|
|
@ -28,11 +28,15 @@
|
||||||
${LabelSyncTempPathHelp}
|
${LabelSyncTempPathHelp}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="txtUploadRateLimit">${LabelUploadSpeedLimit}</label>
|
||||||
|
<input type="number" id="txtUploadSpeedLimit" min="0" step=".5" required="required" />
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<button type="submit" data-theme="b" data-icon="check" data-mini="true">
|
<button type="submit" data-theme="b" data-icon="check">
|
||||||
${ButtonSave}
|
${ButtonSave}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<p class="lnkEditUserPreferencesContainer">
|
<p class="lnkEditUserPreferencesContainer">
|
||||||
<a class="lnkEditUserPreferences" href="#" target="_blank">${ButtonEditOtherUserPreferences}</a>
|
<a class="lnkEditUserPreferences" href="#" target="_blank">${ButtonEditOtherUserPreferences}</a>
|
||||||
</p>
|
</p>
|
||||||
<br/>
|
<br />
|
||||||
<form id="editUserProfileForm">
|
<form id="editUserProfileForm">
|
||||||
|
|
||||||
<div class="disabledUserBanner" style="display:none;">
|
<div class="disabledUserBanner" style="display:none;">
|
||||||
|
@ -57,18 +57,26 @@
|
||||||
<label for="chkEnableContentDeletion">${OptionAllowDeleteLibraryContent}</label>
|
<label for="chkEnableContentDeletion">${OptionAllowDeleteLibraryContent}</label>
|
||||||
<input type="checkbox" id="chkEnableDownloading" />
|
<input type="checkbox" id="chkEnableDownloading" />
|
||||||
<label for="chkEnableDownloading">${OptionAllowContentDownloading}</label>
|
<label for="chkEnableDownloading">${OptionAllowContentDownloading}</label>
|
||||||
<input type="checkbox" id="chkEnableMediaPlayback" name="chkEnableMediaPlayback" />
|
|
||||||
<label for="chkEnableMediaPlayback">${OptionAllowMediaPlayback}</label>
|
|
||||||
<input type="checkbox" id="chkEnableLiveTvAccess" name="chkEnableLiveTvAccess" />
|
<input type="checkbox" id="chkEnableLiveTvAccess" name="chkEnableLiveTvAccess" />
|
||||||
<label for="chkEnableLiveTvAccess">${OptionAllowBrowsingLiveTv}</label>
|
<label for="chkEnableLiveTvAccess">${OptionAllowBrowsingLiveTv}</label>
|
||||||
<input type="checkbox" id="chkManageLiveTv" name="chkManageLiveTv" />
|
<input type="checkbox" id="chkManageLiveTv" name="chkManageLiveTv" />
|
||||||
<label for="chkManageLiveTv">${OptionAllowManageLiveTv}</label>
|
<label for="chkManageLiveTv">${OptionAllowManageLiveTv}</label>
|
||||||
<input type="checkbox" id="chkEnableSync" />
|
|
||||||
<label for="chkEnableSync">${OptionAllowSyncContent}</label>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<fieldset id="remoteControlFields" data-role="controlgroup">
|
<fieldset data-role="controlgroup">
|
||||||
|
<legend>${HeaderPlayback}</legend>
|
||||||
|
<input type="checkbox" id="chkEnableMediaPlayback" />
|
||||||
|
<label for="chkEnableMediaPlayback">${OptionAllowMediaPlayback}</label>
|
||||||
|
<input type="checkbox" id="chkEnableMediaPlaybackTranscoding" />
|
||||||
|
<label for="chkEnableMediaPlaybackTranscoding">${OptionAllowMediaPlaybackTranscoding}</label>
|
||||||
|
</fieldset>
|
||||||
|
<div class="fieldDescription">${OptionAllowMediaPlaybackTranscodingHelp}</div>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div>
|
||||||
|
<fieldset data-role="controlgroup">
|
||||||
<legend>${HeaderRemoteControl}</legend>
|
<legend>${HeaderRemoteControl}</legend>
|
||||||
<input type="checkbox" id="chkEnableRemoteControlOtherUsers" name="chkEnableRemoteControlOtherUsers" />
|
<input type="checkbox" id="chkEnableRemoteControlOtherUsers" name="chkEnableRemoteControlOtherUsers" />
|
||||||
<label for="chkEnableRemoteControlOtherUsers">${OptionAllowRemoteControlOthers}</label>
|
<label for="chkEnableRemoteControlOtherUsers">${OptionAllowRemoteControlOthers}</label>
|
||||||
|
@ -78,6 +86,17 @@
|
||||||
<div class="fieldDescription">${OptionAllowRemoteSharedDevicesHelp}</div>
|
<div class="fieldDescription">${OptionAllowRemoteSharedDevicesHelp}</div>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
<br />
|
||||||
|
<div>
|
||||||
|
<fieldset data-role="controlgroup">
|
||||||
|
<legend>${HeaderSync}</legend>
|
||||||
|
<input type="checkbox" id="chkEnableSync" />
|
||||||
|
<label for="chkEnableSync">${OptionAllowSyncContent}</label>
|
||||||
|
<input type="checkbox" id="chkEnableSyncTranscoding" />
|
||||||
|
<label for="chkEnableSyncTranscoding">${OptionAllowSyncTranscoding}</label>
|
||||||
|
</fieldset>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
<div id="fldIsEnabled" style="margin: 1em 0 2em;">
|
<div id="fldIsEnabled" style="margin: 1em 0 2em;">
|
||||||
<div data-role="controlgroup">
|
<div data-role="controlgroup">
|
||||||
<input type="checkbox" id="chkDisabled" name="chkDisabled" />
|
<input type="checkbox" id="chkDisabled" name="chkDisabled" />
|
||||||
|
@ -101,7 +120,7 @@
|
||||||
<br />
|
<br />
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<button type="submit" data-theme="b" data-icon="check" data-mini="true">
|
<button type="submit" data-theme="b" data-icon="check">
|
||||||
${ButtonSave}
|
${ButtonSave}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue