Compare commits

..

6 Commits

Author SHA1 Message Date
CodeDevMLH
ec0e686e00 Update manifest.json for release v1.6.6.3 [skip ci] 2026-02-19 15:50:04 +00:00
CodeDevMLH
54395896b3 Bump version to 1.6.6.3
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 56s
2026-02-19 16:49:08 +01:00
CodeDevMLH
8b2fe59f5a Add server configuration check to disable plugin if necessary 2026-02-19 16:49:00 +01:00
CodeDevMLH
a44bf7ebf4 Update manifest.json for release v1.6.6.2 [skip ci] 2026-02-19 02:36:42 +00:00
CodeDevMLH
1f273906bf Bump version to 1.6.6.2
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 51s
2026-02-19 03:35:50 +01:00
CodeDevMLH
0534d0458e Add delay before stopping other video players during slideshow transitions 2026-02-19 03:35:38 +01:00
3 changed files with 39 additions and 29 deletions

View File

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

View File

@@ -2393,30 +2393,32 @@ const SlideshowManager = {
// Manage Video Playback: Stop others, Play current // Manage Video Playback: Stop others, Play current
// 1. Stop all other YouTube players and local video elements, release connections // 1. Stop all other YouTube players and local video elements, release connections
if (STATE.slideshow.videoPlayers) { setTimeout(() => {
Object.keys(STATE.slideshow.videoPlayers).forEach(id => { if (STATE.slideshow.videoPlayers) {
if (id !== currentItemId) { Object.keys(STATE.slideshow.videoPlayers).forEach(id => {
const p = STATE.slideshow.videoPlayers[id]; if (id !== currentItemId) {
if (!p) return; const p = STATE.slideshow.videoPlayers[id];
// YouTube player if (!p) return;
if (typeof p.pauseVideo === 'function') { // YouTube player
p.pauseVideo(); if (typeof p.pauseVideo === 'function') {
} p.pauseVideo();
// HTML5 <video> element (local trailers), release HTTP connection }
if (p instanceof HTMLVideoElement) { // HTML5 <video> element (local trailers), release HTTP connection
p.pause(); if (p instanceof HTMLVideoElement) {
p.muted = true; p.pause();
p.currentTime = 0; p.muted = true;
// Save src to data-src and release the HTTP streaming connection p.currentTime = 0;
if (p.src && !p.getAttribute('data-src')) { // Save src to data-src and release the HTTP streaming connection
p.setAttribute('data-src', p.src); if (p.src && !p.getAttribute('data-src')) {
p.setAttribute('data-src', p.src);
}
p.removeAttribute('src');
p.load();
} }
p.removeAttribute('src');
p.load();
} }
} });
}); }
} }, CONFIG.fadeTransitionDuration);
// 2. Pause all other HTML5 videos e.g. local trailers // 2. Pause all other HTML5 videos e.g. local trailers
document.querySelectorAll('video').forEach(video => { document.querySelectorAll('video').forEach(video => {
@@ -3716,11 +3718,19 @@ const slidesInit = async () => {
console.log("⚠️ Slideshow already initialized, skipping"); console.log("⚠️ Slideshow already initialized, skipping");
return; return;
} }
// Check if plugin is enabled
if (CONFIG.isEnabled === false) {
console.log("MediaBarEnhanced: Disabled by server configuration");
const loader = document.querySelector(".bar-loading");
if (loader) loader.remove();
return;
}
if (CONFIG.enableClientSideSettings) { if (CONFIG.enableClientSideSettings) {
MediaBarEnhancedSettingsManager.init(); MediaBarEnhancedSettingsManager.init();
const isEnabled = MediaBarEnhancedSettingsManager.getSetting('enabled', true); const isClientSideEnabled = MediaBarEnhancedSettingsManager.getSetting('enabled', true);
if (!isEnabled) { if (!isClientSideEnabled) {
console.log("MediaBarEnhanced: Disabled by client-side setting."); console.log("MediaBarEnhanced: Disabled by client-side setting.");
const homeSections = document.querySelector('.homeSectionsContainer'); const homeSections = document.querySelector('.homeSectionsContainer');
if (homeSections) { if (homeSections) {

View File

@@ -9,12 +9,12 @@
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png", "imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
"versions": [ "versions": [
{ {
"version": "1.6.6.1", "version": "1.6.6.3",
"changelog": "- feat: add static backdrop also for video backdrops\n- fix: renaming issue of settings (avoiding conflict with other plugins)", "changelog": "- feat: add static backdrop also for video backdrops\n- fix: renaming issue of settings (avoiding conflict with other plugins)",
"targetAbi": "10.11.0.0", "targetAbi": "10.11.0.0",
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.6.6.1/Jellyfin.Plugin.MediaBarEnhanced.zip", "sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.6.6.3/Jellyfin.Plugin.MediaBarEnhanced.zip",
"checksum": "b601594ce1b9928a6e4a41d94c866346", "checksum": "7841bf8916ae070449b04783960dacca",
"timestamp": "2026-02-19T02:25:33Z" "timestamp": "2026-02-19T15:50:04Z"
}, },
{ {
"version": "1.6.5.2", "version": "1.6.5.2",