From 0534d0458e2cdeddd564352c769c080013b8d985 Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Thu, 19 Feb 2026 03:35:38 +0100 Subject: [PATCH] Add delay before stopping other video players during slideshow transitions --- .../Web/mediaBarEnhanced.js | 46 ++++++++++--------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js b/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js index 43db69f..4195d97 100644 --- a/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js +++ b/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js @@ -2393,30 +2393,32 @@ const SlideshowManager = { // Manage Video Playback: Stop others, Play current // 1. Stop all other YouTube players and local video elements, release connections - if (STATE.slideshow.videoPlayers) { - Object.keys(STATE.slideshow.videoPlayers).forEach(id => { - if (id !== currentItemId) { - const p = STATE.slideshow.videoPlayers[id]; - if (!p) return; - // YouTube player - if (typeof p.pauseVideo === 'function') { - p.pauseVideo(); - } - // HTML5