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

avoid buffering http responses

This commit is contained in:
Luke Pulverenti 2016-10-06 14:55:01 -04:00
parent 86a369b500
commit 170b720d0b
22 changed files with 102 additions and 42 deletions

View file

@ -1,4 +1,4 @@
define(['libraryBrowser', 'cardBuilder', 'dom', 'scrollStyles', 'emby-itemscontainer', 'emby-tabs', 'emby-button'], function (libraryBrowser, cardBuilder, dom) {
define(['libraryBrowser', 'cardBuilder', 'apphost', 'scrollStyles', 'emby-itemscontainer', 'emby-tabs', 'emby-button'], function (libraryBrowser, cardBuilder, appHost) {
function enableScrollX() {
return browserInfo.mobile && AppInfo.enableAppLayouts;
@ -113,6 +113,8 @@
function renderItems(page, items, sectionClass, overlayButton, shape) {
var supportsImageAnalysis = appHost.supports('imageanalysis');
var html = cardBuilder.getCardsHtml({
items: items,
preferThumb: !shape,
@ -124,12 +126,14 @@
coverImage: true,
overlayText: false,
lazy: true,
overlayMoreButton: overlayButton != 'play',
overlayMoreButton: overlayButton != 'play' && !supportsImageAnalysis,
overlayPlayButton: overlayButton == 'play',
allowBottomPadding: !enableScrollX(),
showAirTime: true,
showAirDateTime: true,
showChannelName: true
showChannelName: true,
vibrant: true,
cardLayout: supportsImageAnalysis
//cardFooterAside: 'logo'
});