Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe63414e4b | ||
|
|
614c86083f | ||
|
|
17b9e8921e | ||
|
|
5075226ba8 | ||
|
|
443fb1008b | ||
|
|
8f12140aad | ||
|
|
1469712bb5 |
@@ -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.5.0.26</Version>
|
<Version>1.5.1.0</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>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Jellyfin Slideshow by M0RPH3US v3.0.9
|
* Jellyfin Slideshow by M0RPH3US v4.0.1
|
||||||
* Modified by CodeDevMLH v1.1.0.0
|
* Modified by CodeDevMLH
|
||||||
*
|
*
|
||||||
* New features:
|
* New features:
|
||||||
* - optional Trailer background video support
|
* - optional Trailer background video support
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Jellyfin Slideshow by M0RPH3US v4.0.1
|
* Jellyfin Slideshow by M0RPH3US v4.0.1
|
||||||
* Modified by CodeDevMLH v1.1.0.0
|
* Modified by CodeDevMLH
|
||||||
*
|
*
|
||||||
* New features:
|
* New features:
|
||||||
* - optional Trailer background video support
|
* - optional Trailer background video support
|
||||||
@@ -737,7 +737,9 @@ const SlideUtils = {
|
|||||||
autoplay: 1,
|
autoplay: 1,
|
||||||
controls: 1,
|
controls: 1,
|
||||||
iv_load_policy: 3,
|
iv_load_policy: 3,
|
||||||
rel: 0
|
rel: 0,
|
||||||
|
playsinline: 1,
|
||||||
|
origin: window.location.origin
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -1626,7 +1628,9 @@ const SlideCreator = {
|
|||||||
fs: 0,
|
fs: 0,
|
||||||
iv_load_policy: 3,
|
iv_load_policy: 3,
|
||||||
rel: 0,
|
rel: 0,
|
||||||
loop: 0
|
loop: 0,
|
||||||
|
playsinline: 1,
|
||||||
|
origin: window.location.origin
|
||||||
};
|
};
|
||||||
|
|
||||||
// Determine video quality
|
// Determine video quality
|
||||||
@@ -2705,20 +2709,12 @@ const SlideshowManager = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const activeElement = document.activeElement;
|
const activeElement = document.activeElement;
|
||||||
// Detect TV Mode
|
|
||||||
const isTvDevice = window.browser && window.browser.tv;
|
const isTvDevice = window.browser && window.browser.tv;
|
||||||
const isTvLayout = window.layoutManager && window.layoutManager.tv;
|
const isTvLayout = window.layoutManager && window.layoutManager.tv;
|
||||||
const hasTvClass = document.documentElement.classList.contains('layout-tv') || document.body.classList.contains('layout-tv');
|
const hasTvClass = document.documentElement.classList.contains('layout-tv') || document.body.classList.contains('layout-tv');
|
||||||
const isTvMode = isTvDevice || isTvLayout || hasTvClass;
|
const isTvMode = isTvDevice || isTvLayout || hasTvClass;
|
||||||
|
|
||||||
// Apply scroll fix if TV mode is detected
|
// Check Focus State
|
||||||
if (isTvMode) {
|
|
||||||
document.documentElement.style.scrollPaddingTop = '65vh';
|
|
||||||
} else {
|
|
||||||
document.documentElement.style.scrollPaddingTop = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2. Check Focus State
|
|
||||||
const isBodyFocused = activeElement === document.body;
|
const isBodyFocused = activeElement === document.body;
|
||||||
const hasDirectFocus = container.contains(activeElement) || activeElement === container;
|
const hasDirectFocus = container.contains(activeElement) || activeElement === container;
|
||||||
|
|
||||||
@@ -2795,23 +2791,6 @@ const SlideshowManager = {
|
|||||||
container.addEventListener("blur", () => {
|
container.addEventListener("blur", () => {
|
||||||
STATE.slideshow.containerFocused = false;
|
STATE.slideshow.containerFocused = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Helper to apply TV mode styles immediately
|
|
||||||
const applyTvStyles = () => {
|
|
||||||
const isTv = (window.browser && window.browser.tv) ||
|
|
||||||
(window.layoutManager && window.layoutManager.tv) ||
|
|
||||||
document.documentElement.classList.contains('layout-tv') ||
|
|
||||||
document.body.classList.contains('layout-tv');
|
|
||||||
|
|
||||||
if (isTv) {
|
|
||||||
document.documentElement.style.scrollPaddingTop = '65vh';
|
|
||||||
document.body.style.scrollPaddingTop = '65vh';
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
// Run immediately and on focus changes to ensure styles are applied
|
|
||||||
applyTvStyles();
|
|
||||||
document.addEventListener('focusin', applyTvStyles);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,12 +9,20 @@
|
|||||||
"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.5.0.27",
|
"version": "1.5.1.0",
|
||||||
"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",
|
"changelog": "- fix: iOS/MacOS playback issue?",
|
||||||
"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.5.0.27/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.5.1.0/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||||
"checksum": "a28f1fff3373b3daca4c21f5091e396d",
|
"checksum": "18c462811e80878c32249e03209ec4b8",
|
||||||
"timestamp": "2026-02-10T00:16:22Z"
|
"timestamp": "2026-02-10T00:51:17Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "1.5.0.28",
|
||||||
|
"changelog": "- fix: Keyboard controls in TV mode\n- Add sorting options for content\n- Add local trailer support\n- fix performance issue\n- Update mediaBarEnhanced.js and mediaBarEnhanced.css with version 4.0.1 from upstream repo",
|
||||||
|
"targetAbi": "10.11.0.0",
|
||||||
|
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.5.0.28/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||||
|
"checksum": "0261ff27be18d48cefa5078706954240",
|
||||||
|
"timestamp": "2026-02-10T00:35:41Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"version": "1.3.0.3",
|
"version": "1.3.0.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user