mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
adjust external player label
This commit is contained in:
parent
f19a485f12
commit
670d654af8
9 changed files with 64 additions and 33 deletions
|
@ -784,12 +784,14 @@
|
|||
return;
|
||||
}
|
||||
|
||||
showItemsOverlay({
|
||||
ids: [itemId],
|
||||
context: context
|
||||
});
|
||||
if (AppSettings.enableItemPreviews()) {
|
||||
showItemsOverlay({
|
||||
ids: [itemId],
|
||||
context: context
|
||||
});
|
||||
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$.fn.createCardMenus = function (options) {
|
||||
|
|
|
@ -1109,7 +1109,7 @@
|
|||
|
||||
// Can't autoplay in these browsers so we need to use the full controls
|
||||
if (requiresNativeControls) {
|
||||
html += '<video class="itemVideo" id="itemVideo" preload="metadata" autoplay="autoplay" crossorigin="anonymous" controls="controls"' + posterCode + '>';
|
||||
html += '<video class="itemVideo" id="itemVideo" preload="metadata" autoplay="autoplay" crossorigin="anonymous" controls="controls"' + posterCode + ' webkit-playsinline>';
|
||||
}
|
||||
else {
|
||||
|
||||
|
|
|
@ -61,11 +61,7 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
$(document).on('pageinit', "#webClientPreferencesPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
}).on('pagebeforeshow', "#webClientPreferencesPage", function () {
|
||||
$(document).on('pageshowready', "#webClientPreferencesPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -86,6 +82,14 @@
|
|||
} else {
|
||||
$('.homePageConfigurationSection', page).show();
|
||||
}
|
||||
|
||||
if (AppInfo.hasKnownExternalPlayerSupport) {
|
||||
$('.labelNativeExternalPlayers', page).show();
|
||||
$('.labelGenericExternalPlayers', page).hide();
|
||||
} else {
|
||||
$('.labelGenericExternalPlayers', page).show();
|
||||
$('.labelNativeExternalPlayers', page).hide();
|
||||
}
|
||||
});
|
||||
|
||||
window.WebClientPreferencesPage = {
|
||||
|
@ -121,6 +125,14 @@
|
|||
}
|
||||
|
||||
return store.getItem('externalplayers') == 'true';
|
||||
},
|
||||
enableItemPreviews: function (val) {
|
||||
|
||||
if (val != null) {
|
||||
store.setItem('enableItemPreviews', val.toString());
|
||||
}
|
||||
|
||||
return store.getItem('enableItemPreviews') != 'false';
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -1386,7 +1386,7 @@ var Dashboard = {
|
|||
// The native app can handle a little bit more than safari
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
|
||||
quality -= 15;
|
||||
quality -= 20;
|
||||
|
||||
if (isBackdrop) {
|
||||
quality -= 20;
|
||||
|
@ -1549,12 +1549,13 @@ var AppInfo = {};
|
|||
|
||||
if (isCordova) {
|
||||
AppInfo.enableBottomTabs = true;
|
||||
AppInfo.cardMargin = 'mediumCardMargin';
|
||||
} else {
|
||||
AppInfo.enableDetailPageChapters = false;
|
||||
AppInfo.enableDetailsMenuImages = false;
|
||||
AppInfo.enableHeaderImages = false;
|
||||
AppInfo.enableMovieHomeSuggestions = false;
|
||||
AppInfo.enableLargeCardMargin = true;
|
||||
AppInfo.cardMargin = 'largeCardMargin';
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -1577,6 +1578,7 @@ var AppInfo = {};
|
|||
|
||||
if (isCordova) {
|
||||
AppInfo.enableAppLayouts = true;
|
||||
AppInfo.hasKnownExternalPlayerSupport = true;
|
||||
}
|
||||
else {
|
||||
AppInfo.enableFooterNotifications = true;
|
||||
|
@ -1670,8 +1672,8 @@ var AppInfo = {};
|
|||
initFastClick();
|
||||
}
|
||||
|
||||
if (AppInfo.enableLargeCardMargin) {
|
||||
$(document.body).addClass('largeCardMargin');
|
||||
if (AppInfo.cardMargin) {
|
||||
$(document.body).addClass(AppInfo.cardMargin);
|
||||
}
|
||||
|
||||
if (!AppInfo.enableLatestChannelItems) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue