Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26ef307838 | ||
|
|
c296483583 | ||
|
|
7992e20715 |
@@ -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.1.17</Version>
|
<Version>1.6.1.18</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>
|
||||||
|
|
||||||
|
|||||||
@@ -1490,7 +1490,6 @@ const VisibilityObserver = {
|
|||||||
* Initializes visibility observer
|
* Initializes visibility observer
|
||||||
*/
|
*/
|
||||||
init() {
|
init() {
|
||||||
// MARK: Mark
|
|
||||||
const observer = new MutationObserver(() => this.updateVisibility());
|
const observer = new MutationObserver(() => this.updateVisibility());
|
||||||
// let debounceTimer = null;
|
// let debounceTimer = null;
|
||||||
// const observer = new MutationObserver(() => {
|
// const observer = new MutationObserver(() => {
|
||||||
@@ -1744,14 +1743,15 @@ const SlideCreator = {
|
|||||||
|
|
||||||
if (slide && slide.classList.contains('active') && !document.hidden && (!isVideoPlayerOpen || isVideoPlayerOpen.classList.contains('hide'))) {
|
if (slide && slide.classList.contains('active') && !document.hidden && (!isVideoPlayerOpen || isVideoPlayerOpen.classList.contains('hide'))) {
|
||||||
// MARK: mark
|
// MARK: mark
|
||||||
// const currentIndex = STATE.slideshow.currentSlideIndex;
|
const currentIndex = STATE.slideshow.currentSlideIndex;
|
||||||
// const currentItemId = STATE.slideshow.itemIds[currentIndex];
|
const currentItemId = STATE.slideshow.itemIds[currentIndex];
|
||||||
// if (currentItemId !== itemId) {
|
if (currentItemId !== itemId) {
|
||||||
// console.log(`Slide ${itemId} is no longer active (current: ${currentItemId}), aborting playback.`);
|
console.log(`Slide ${itemId} is no longer active (current: ${currentItemId}), aborting playback.`);
|
||||||
// event.target.mute(); // Mute just in case
|
event.target.mute(); // Mute just in case
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
event.target.playVideo();
|
|
||||||
|
event.target.playVideo();
|
||||||
|
|
||||||
// Check if it actually started playing after a short delay (handling autoplay blocks)
|
// Check if it actually started playing after a short delay (handling autoplay blocks)
|
||||||
const timeoutId = setTimeout(() => {
|
const timeoutId = setTimeout(() => {
|
||||||
@@ -1828,12 +1828,12 @@ const SlideCreator = {
|
|||||||
backdrop.addEventListener('play', (event) => {
|
backdrop.addEventListener('play', (event) => {
|
||||||
const slide = document.querySelector(`.slide[data-item-id="${itemId}"]`);
|
const slide = document.querySelector(`.slide[data-item-id="${itemId}"]`);
|
||||||
// MARK: mark
|
// MARK: mark
|
||||||
// const currentIndex = STATE.slideshow.currentSlideIndex;
|
const currentIndex = STATE.slideshow.currentSlideIndex;
|
||||||
// const currentItemId = STATE.slideshow.itemIds[currentIndex];
|
const currentItemId = STATE.slideshow.itemIds[currentIndex];
|
||||||
|
|
||||||
// if (!slide || !slide.classList.contains('active') || currentItemId !== itemId) {
|
if (!slide || !slide.classList.contains('active') || currentItemId !== itemId) {
|
||||||
|
|
||||||
if (!slide || !slide.classList.contains('active')) {
|
// if (!slide || !slide.classList.contains('active')) {
|
||||||
console.log(`Local video ${itemId} started playing but is not active, pausing.`);
|
console.log(`Local video ${itemId} started playing but is not active, pausing.`);
|
||||||
event.target.pause();
|
event.target.pause();
|
||||||
event.target.currentTime = 0;
|
event.target.currentTime = 0;
|
||||||
@@ -2712,7 +2712,9 @@ const SlideshowManager = {
|
|||||||
|
|
||||||
videoBackdrop.play().catch(() => {
|
videoBackdrop.play().catch(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (videoBackdrop.paused) {
|
// MARK: mark
|
||||||
|
if (videoBackdrop.paused && slide.classList.contains('active')) {
|
||||||
|
// if (videoBackdrop.paused) {
|
||||||
console.warn(`Autoplay blocked for ${itemId}, attempting muted fallback`);
|
console.warn(`Autoplay blocked for ${itemId}, attempting muted fallback`);
|
||||||
videoBackdrop.muted = true;
|
videoBackdrop.muted = true;
|
||||||
videoBackdrop.play().catch(err => console.error("Muted fallback failed", err));
|
videoBackdrop.play().catch(err => console.error("Muted fallback failed", err));
|
||||||
@@ -2739,6 +2741,9 @@ const SlideshowManager = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
// MARK: mark
|
||||||
|
if (!slide.classList.contains('active')) return;
|
||||||
|
|
||||||
if (player.getPlayerState &&
|
if (player.getPlayerState &&
|
||||||
player.getPlayerState() !== YT.PlayerState.PLAYING &&
|
player.getPlayerState() !== YT.PlayerState.PLAYING &&
|
||||||
player.getPlayerState() !== YT.PlayerState.BUFFERING) {
|
player.getPlayerState() !== YT.PlayerState.BUFFERING) {
|
||||||
|
|||||||
@@ -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.1.17",
|
"version": "1.6.1.18",
|
||||||
"changelog": "- fix tv mode issue\n- refactor video playback management",
|
"changelog": "- fix tv mode issue\n- refactor video playback management",
|
||||||
"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.1.17/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.6.1.18/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||||
"checksum": "4f0f1b0bfcb073ae72c6a5ba3b991e65",
|
"checksum": "d1bb3e651c2eda66fa52a8349568c534",
|
||||||
"timestamp": "2026-02-13T13:49:22Z"
|
"timestamp": "2026-02-13T18:35:23Z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"version": "1.6.0.2",
|
"version": "1.6.0.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user