From 4c6514ba9f835c1844649937e0c0140c4a7afd99 Mon Sep 17 00:00:00 2001
From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com>
Date: Mon, 9 Feb 2026 16:20:52 +0100
Subject: [PATCH] Bump version to 1.5.0.13 and update changelog in
manifest.json
---
.../Jellyfin.Plugin.MediaBarEnhanced.csproj | 2 +-
.../Web/mediaBarEnhanced.js | 18 +++++++++++++-----
manifest.json | 2 +-
3 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj b/Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj
index 8ca8583..a97cc05 100644
--- a/Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj
+++ b/Jellyfin.Plugin.MediaBarEnhanced/Jellyfin.Plugin.MediaBarEnhanced.csproj
@@ -12,7 +12,7 @@
Jellyfin Media Bar Enhanced Plugin
CodeDevMLH
- 1.5.0.12
+ 1.5.0.13
https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced
diff --git a/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js b/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js
index 2029142..4f143a0 100644
--- a/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js
+++ b/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js
@@ -1699,13 +1699,16 @@ const SlideCreator = {
const slide = document.querySelector(`.slide[data-item-id="${itemId}"]`);
const videoContainer = slide ? slide.querySelector('.video-container') : null;
- if (event.data === YT.PlayerState.PLAYING) {
+ if (event.data === YT.PlayerState.PLAYING || event.data === YT.PlayerState.BUFFERING) {
if (videoContainer) videoContainer.classList.add('active');
} else {
- if (videoContainer) videoContainer.classList.remove('active');
+ 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 {
@@ -1714,6 +1717,7 @@ const SlideCreator = {
}
},
'onError': () => {
+ if (videoContainer) videoContainer.classList.remove('active');
// Fallback to next slide on error
if (CONFIG.waitForTrailerToEnd) {
SlideshowManager.nextSlide();
@@ -1780,9 +1784,13 @@ const SlideCreator = {
isVideo = false;
hasUpstreamVideo = true;
- backdrop.addEventListener('play', () => videoContainer.classList.add('active'));
- backdrop.addEventListener('pause', () => videoContainer.classList.remove('active'));
- backdrop.addEventListener('ended', () => videoContainer.classList.remove('active'));
+ // 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'));
+ });
}
}
}
diff --git a/manifest.json b/manifest.json
index 0fb3fc5..502034d 100644
--- a/manifest.json
+++ b/manifest.json
@@ -9,7 +9,7 @@
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
"versions": [
{
- "version": "1.5.0.12",
+ "version": "1.5.0.13",
"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.12/Jellyfin.Plugin.MediaBarEnhanced.zip",