Compare commits
3 Commits
v1.7.0.1
...
73eb30d671
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73eb30d671 | ||
|
|
2cfbec95c9 | ||
|
|
08fc29cba3 |
@@ -12,7 +12,7 @@
|
||||
<!-- <TreatWarningsAsErrors>false</TreatWarningsAsErrors> -->
|
||||
<Title>Jellyfin Media Bar Enhanced Plugin</Title>
|
||||
<Authors>CodeDevMLH</Authors>
|
||||
<Version>1.7.0.1</Version>
|
||||
<Version>1.7.0.2</Version>
|
||||
<RepositoryUrl>https://github.com/CodeDevMLH/jellyfin-plugin-media-bar-enhanced</RepositoryUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -2467,28 +2467,39 @@ const SlideshowManager = {
|
||||
if (videoBackdrop.tagName === 'VIDEO') {
|
||||
// Restore src from data-src if it was deactivated to release connections
|
||||
const lazySrc = videoBackdrop.getAttribute('data-src');
|
||||
if (lazySrc && !videoBackdrop.src) {
|
||||
videoBackdrop.src = lazySrc;
|
||||
videoBackdrop.load();
|
||||
}
|
||||
|
||||
videoBackdrop.currentTime = 0;
|
||||
const isFreshLoad = lazySrc && !videoBackdrop.src;
|
||||
|
||||
videoBackdrop.muted = STATE.slideshow.isMuted;
|
||||
if (!STATE.slideshow.isMuted) {
|
||||
videoBackdrop.volume = 0.4;
|
||||
}
|
||||
|
||||
videoBackdrop.play().catch(e => {
|
||||
// Check if it actually started playing after a short delay (handling autoplay blocks)
|
||||
setTimeout(() => {
|
||||
if (videoBackdrop.paused && currentSlide.classList.contains('active')) {
|
||||
console.warn(`Autoplay blocked for ${currentItemId}, attempting muted fallback`);
|
||||
videoBackdrop.muted = true;
|
||||
videoBackdrop.play().catch(err => console.error("Muted fallback failed", err));
|
||||
}
|
||||
}, 1000);
|
||||
});
|
||||
const doPlay = () => {
|
||||
if (!currentSlide.classList.contains('active')) return;
|
||||
videoBackdrop.play().catch(e => {
|
||||
setTimeout(() => {
|
||||
if (videoBackdrop.paused && currentSlide.classList.contains('active')) {
|
||||
console.warn(`Autoplay blocked for ${currentItemId}, attempting muted fallback`);
|
||||
videoBackdrop.muted = true;
|
||||
videoBackdrop.play().catch(err => console.error("Muted fallback failed", err));
|
||||
}
|
||||
}, 1000);
|
||||
});
|
||||
};
|
||||
|
||||
if (isFreshLoad) {
|
||||
// Safari: set src, then wait for loadedmetadata before seeking/playing
|
||||
videoBackdrop.src = lazySrc;
|
||||
videoBackdrop.load();
|
||||
videoBackdrop.addEventListener('loadedmetadata', () => {
|
||||
videoBackdrop.currentTime = 0;
|
||||
doPlay();
|
||||
}, { once: true });
|
||||
} else {
|
||||
// src already set (e.g. paused slide resuming)
|
||||
videoBackdrop.currentTime = 0;
|
||||
doPlay();
|
||||
}
|
||||
} else if (STATE.slideshow.videoPlayers && STATE.slideshow.videoPlayers[currentItemId]) {
|
||||
const player = STATE.slideshow.videoPlayers[currentItemId];
|
||||
if (player && typeof player.loadVideoById === 'function' && player._videoId) {
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
"imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/raw/branch/main/logo.png",
|
||||
"versions": [
|
||||
{
|
||||
"version": "1.7.0.1",
|
||||
"version": "1.7.0.2",
|
||||
"changelog": "- Add YouTube no-cookie host and referrer policy for iframe security to fix playback issues on iOS/MacOS",
|
||||
"targetAbi": "10.11.0.0",
|
||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.7.0.1/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||
"checksum": "1e75cf789d686565176fea5a7010dd50",
|
||||
"timestamp": "2026-03-05T21:43:50Z"
|
||||
"sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/jellyfin-plugin-media-bar-enhanced/releases/download/v1.7.0.2/Jellyfin.Plugin.MediaBarEnhanced.zip",
|
||||
"checksum": "ac29b647173ef306beb01f3f66373c21",
|
||||
"timestamp": "2026-03-05T22:44:55Z"
|
||||
},
|
||||
{
|
||||
"version": "1.6.6.4",
|
||||
|
||||
Reference in New Issue
Block a user