Compare commits

..

9 Commits

Author SHA1 Message Date
CodeDevMLH
538b0f2110 Update manifest.json for release v1.5.0.18 [skip ci] 2026-02-09 16:21:43 +00:00
CodeDevMLH
e717c07c54 Bump version to 1.5.0.18 and update changelog for recent changes
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 1m2s
2026-02-09 17:20:40 +01:00
CodeDevMLH
0fa2d01ca3 Update manifest.json for release v1.5.0.17 [skip ci] 2026-02-09 16:05:12 +00:00
CodeDevMLH
5299b2a9d5 Bump version to 1.5.0.17 and update changelog for recent changes
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 57s
2026-02-09 17:04:15 +01:00
CodeDevMLH
4f244988b9 Update manifest.json for release v1.5.0.16 [skip ci] 2026-02-09 15:54:25 +00:00
CodeDevMLH
5635a8f05e Bump version to 1.5.0.16 and update changelog for keyboard controls and sorting options
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 52s
2026-02-09 16:53:33 +01:00
CodeDevMLH
c901da4b0c Update manifest.json for release v1.5.0.15 [skip ci] 2026-02-09 15:41:45 +00:00
CodeDevMLH
c45cd0281f Bump version to 1.5.0.15 in project file and manifest.json
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 51s
2026-02-09 16:40:24 +01:00
CodeDevMLH
0c3e74829a Remove upstream trailer layout feature from configuration and UI 2026-02-09 16:40:01 +01:00
6 changed files with 21 additions and 143 deletions

View File

@@ -36,7 +36,6 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Configuration
public bool EnableSeasonalContent { get; set; } = false;
public bool IsEnabled { get; set; } = true;
public bool EnableClientSideSettings { get; set; } = false;
public bool EnableUpstreamTrailerLayout { get; set; } = false;
public string SortBy { get; set; } = "Random";
public string SortOrder { get; set; } = "Ascending";
}

View File

@@ -73,14 +73,6 @@
</label>
<div class="fieldDescription">Delay slide transition until trailer finishes.</div>
</div>
<div id="UpstreamTrailerLayoutContainer" class="checkboxContainer checkboxContainer-withDescription">
<label>
<input is="emby-checkbox" type="checkbox" id="EnableUpstreamTrailerLayout"
name="EnableUpstreamTrailerLayout" />
<span>Enable Upstream Trailer Layout</span>
</label>
<div class="fieldDescription">Use the upstream (original) layout for trailers. This renders the video inside a container overlaying the backdrop, instead of replacing it to support full-width video.</div>
</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input is="emby-checkbox" type="checkbox" id="EnableMobileVideo"
@@ -414,7 +406,7 @@
'ShowTrailerButton', 'AlwaysShowArrows', 'EnableKeyboardControls',
'EnableCustomMediaIds', 'CustomMediaIds', 'EnableLoadingScreen',
'EnableSeasonalContent', 'EnableClientSideSettings', 'SortBy', 'SortOrder',
'PreferLocalTrailers', 'EnableUpstreamTrailerLayout'
'PreferLocalTrailers'
];
keys.forEach(function (key) {
@@ -451,15 +443,12 @@
// Handle Prefer Local Trailers visibility
var enableVideoBackdropCheckbox = page.querySelector('#EnableVideoBackdrop');
var preferLocalContainer = page.querySelector('#PreferLocalTrailersContainer');
var upstreamLayoutContainer = page.querySelector('#UpstreamTrailerLayoutContainer');
function updatePreferLocalVisibility() {
if (enableVideoBackdropCheckbox && enableVideoBackdropCheckbox.checked) {
if (preferLocalContainer) preferLocalContainer.style.display = 'block';
if (upstreamLayoutContainer) upstreamLayoutContainer.style.display = 'block';
} else {
if (preferLocalContainer) preferLocalContainer.style.display = 'none';
if (upstreamLayoutContainer) upstreamLayoutContainer.style.display = 'none';
}
}
@@ -484,7 +473,7 @@
'ShowTrailerButton', 'AlwaysShowArrows', 'EnableKeyboardControls',
'EnableCustomMediaIds', 'CustomMediaIds', 'EnableLoadingScreen',
'EnableSeasonalContent', 'EnableClientSideSettings', 'SortBy', 'SortOrder',
'PreferLocalTrailers', 'EnableUpstreamTrailerLayout'
'PreferLocalTrailers'
];
keys.forEach(function (key) {

View File

@@ -12,7 +12,7 @@
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
<Title>Jellyfin Media Bar Enhanced Plugin</Title>
<Authors>CodeDevMLH</Authors>
<Version>1.5.0.14</Version>
<Version>1.5.0.18</Version>
<RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl>
</PropertyGroup>

View File

@@ -161,7 +161,7 @@
.homeSectionsContainer {
position: relative;
top: 65vh;
margin-top: 65vh;
z-index: 6;
}
@@ -343,50 +343,6 @@
z-index: 1;
}
.video-container {
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 0;
z-index: 2;
overflow: hidden;
transition:
width 0.5s ease-in-out,
opacity 0.5s ease-in-out;
opacity: 0;
pointer-events: none;
mask-image:
linear-gradient(to right, transparent 10%, black 30%),
linear-gradient(to top, transparent 2%, rgba(0, 0, 0, 0.5) 6%, black 8%);
-webkit-mask-image:
linear-gradient(to right, transparent 10%, black 30%),
linear-gradient(to top, transparent 2%, rgba(0, 0, 0, 0.5) 6%, black 8%);
mask-composite: intersect;
-webkit-mask-composite: source-in;
}
.video-container.active {
opacity: 1;
pointer-events: auto;
width: 100%;
}
.video-player {
width: 100%;
height: 100%;
}
/* Ensure video inside container fills it */
.video-container iframe,
.video-container video {
width: 100%;
height: 100%;
border: none;
}
.backdrop-container {
position: absolute;
top: 0%;
@@ -423,10 +379,6 @@
object-position: center 20%;
border-radius: 5px;
z-index: 3;
transition:
width 0.5s ease-in-out,
mask-image 0.5s ease-in-out,
-webkit-mask-image 0.5s ease-in-out;
mask-image: linear-gradient(to top,
#fff0 2%,
rgb(0 0 0 / 0.5) 6%,
@@ -437,20 +389,6 @@
#000000 8%);
}
.backdrop.with-video {
width: 100%;
mask-image:
linear-gradient(to top, #fff0 2%, rgb(0 0 0 / 0.5) 6%, #000000 8%),
linear-gradient(to right, black 30%, transparent 85%);
-webkit-mask-image:
linear-gradient(to top, #fff0 2%, rgb(0 0 0 / 0.5) 6%, #000000 8%),
linear-gradient(to right, black 30%, transparent 85%);
mask-composite: source-in;
-webkit-mask-composite: source-in;
}
.backdrop-overlay {
position: absolute;
top: 0;

View File

@@ -52,7 +52,6 @@ const CONFIG = {
customMediaIds: "",
enableLoadingScreen: true,
enableClientSideSettings: false,
enableUpstreamTrailerLayout: false,
sortBy: "Random",
sortOrder: "Ascending",
};
@@ -1538,7 +1537,6 @@ const SlideCreator = {
let backdrop;
let isVideo = false;
let hasUpstreamVideo = false;
let trailerUrl = null;
// 1. Check for Remote/Local Trailers
@@ -1586,31 +1584,13 @@ const SlideCreator = {
if (isYoutube && videoId) {
isVideo = true;
// Create container for YouTube API
const videoClass = CONFIG.fullWidthVideo ? "video-backdrop-full" : "video-backdrop-default";
if (CONFIG.enableUpstreamTrailerLayout) {
// UPSTREAM LAYOUT: Wrapper Container
const videoContainer = SlideUtils.createElement("div", {
className: "video-container",
id: `video-container-${itemId}`
});
const playerDiv = SlideUtils.createElement("div", {
id: `youtube-player-${itemId}`
});
videoContainer.appendChild(playerDiv);
slide.appendChild(videoContainer); // Append container first
isVideo = false;
hasUpstreamVideo = true;
} else {
// ENHANCED LAYOUT: Direct Backdrop Replacement
backdrop = SlideUtils.createElement("div", {
className: `backdrop video-backdrop ${videoClass}`,
id: `youtube-player-${itemId}`
});
}
backdrop = SlideUtils.createElement("div", {
className: `backdrop video-backdrop ${videoClass}`,
id: `youtube-player-${itemId}`
});
// Initialize YouTube Player
SlideUtils.loadYouTubeIframeAPI().then(() => {
@@ -1696,19 +1676,7 @@ const SlideCreator = {
}
},
'onStateChange': (event) => {
const slide = document.querySelector(`.slide[data-item-id="${itemId}"]`);
const videoContainer = slide ? slide.querySelector('.video-container') : null;
if (event.data === YT.PlayerState.PLAYING || event.data === YT.PlayerState.BUFFERING) {
if (videoContainer) videoContainer.classList.add('active');
} else {
if (videoContainer && event.data !== YT.PlayerState.BUFFERING) {
videoContainer.classList.remove('active');
}
}
if (event.data === YT.PlayerState.ENDED) {
if (videoContainer) videoContainer.classList.remove('active');
if (CONFIG.waitForTrailerToEnd) {
SlideshowManager.nextSlide();
} else {
@@ -1717,7 +1685,6 @@ const SlideCreator = {
}
},
'onError': () => {
if (videoContainer) videoContainer.classList.remove('active');
// Fallback to next slide on error
if (CONFIG.waitForTrailerToEnd) {
SlideshowManager.nextSlide();
@@ -1770,34 +1737,12 @@ const SlideCreator = {
SlideshowManager.nextSlide();
}
});
if (CONFIG.enableUpstreamTrailerLayout) {
// Wrap in container
const videoContainer = SlideUtils.createElement("div", {
className: "video-container",
id: `video-container-${itemId}`
});
backdrop.style.position = "";
videoContainer.appendChild(backdrop);
slide.appendChild(videoContainer);
isVideo = false;
hasUpstreamVideo = true;
// Use requestAnimationFrame to ensure listeners attach and class adds correctly
requestAnimationFrame(() => {
backdrop.addEventListener('play', () => videoContainer.classList.add('active'));
backdrop.addEventListener('playing', () => videoContainer.classList.add('active'));
backdrop.addEventListener('pause', () => videoContainer.classList.remove('active'));
backdrop.addEventListener('ended', () => videoContainer.classList.remove('active'));
});
}
}
}
if (!isVideo) {
backdrop = SlideUtils.createElement("img", {
className: hasUpstreamVideo ? "backdrop high-quality with-video" : "backdrop high-quality",
className: "backdrop high-quality",
src: this.buildImageUrl(item, "Backdrop", 0, serverAddress, 60),
alt: LocalizationUtils.getLocalizedString('Backdrop', 'Backdrop'),
loading: "eager",
@@ -2710,6 +2655,13 @@ const SlideshowManager = {
return;
}
const activeElement = document.activeElement;
const isSlideshowFocused = container.contains(activeElement) || activeElement === container;
if (!isSlideshowFocused) {
return;
}
switch (e.key) {
case "ArrowRight":
SlideshowManager.nextSlide();

View File

@@ -9,12 +9,12 @@
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
"versions": [
{
"version": "1.5.0.14",
"version": "1.5.0.18",
"changelog": "- fix: keyboard controls in TV mode\n- Add sorting options for content\n- Update mediaBarEnhanced.js and mediaBarEnhanced.css with version 4.0.1 from original repo",
"targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.5.0.14/Jellyfin.Plugin.MediaBarEnhanced.zip",
"checksum": "c2ed0d5ac38c3be6f904027fef0ff8eb",
"timestamp": "2026-02-09T15:30:51Z"
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.5.0.18/Jellyfin.Plugin.MediaBarEnhanced.zip",
"checksum": "13d18e5d2498f73324d09bf796788e94",
"timestamp": "2026-02-09T16:21:41Z"
},
{
"version": "1.3.0.3",