Bump version to 1.5.0.13 and update changelog in manifest.json
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 52s

This commit is contained in:
CodeDevMLH
2026-02-09 16:20:52 +01:00
parent 6910eba7d6
commit 4c6514ba9f
3 changed files with 15 additions and 7 deletions

View File

@@ -1699,13 +1699,16 @@ const SlideCreator = {
const slide = document.querySelector(`.slide[data-item-id="${itemId}"]`);
const videoContainer = slide ? slide.querySelector('.video-container') : null;
if (event.data === YT.PlayerState.PLAYING) {
if (event.data === YT.PlayerState.PLAYING || event.data === YT.PlayerState.BUFFERING) {
if (videoContainer) videoContainer.classList.add('active');
} else {
if (videoContainer) videoContainer.classList.remove('active');
if (videoContainer && event.data !== YT.PlayerState.BUFFERING) {
videoContainer.classList.remove('active');
}
}
if (event.data === YT.PlayerState.ENDED) {
if (videoContainer) videoContainer.classList.remove('active');
if (CONFIG.waitForTrailerToEnd) {
SlideshowManager.nextSlide();
} else {
@@ -1714,6 +1717,7 @@ const SlideCreator = {
}
},
'onError': () => {
if (videoContainer) videoContainer.classList.remove('active');
// Fallback to next slide on error
if (CONFIG.waitForTrailerToEnd) {
SlideshowManager.nextSlide();
@@ -1780,9 +1784,13 @@ const SlideCreator = {
isVideo = false;
hasUpstreamVideo = true;
backdrop.addEventListener('play', () => videoContainer.classList.add('active'));
backdrop.addEventListener('pause', () => videoContainer.classList.remove('active'));
backdrop.addEventListener('ended', () => videoContainer.classList.remove('active'));
// Use requestAnimationFrame to ensure listeners attach and class adds correctly
requestAnimationFrame(() => {
backdrop.addEventListener('play', () => videoContainer.classList.add('active'));
backdrop.addEventListener('playing', () => videoContainer.classList.add('active'));
backdrop.addEventListener('pause', () => videoContainer.classList.remove('active'));
backdrop.addEventListener('ended', () => videoContainer.classList.remove('active'));
});
}
}
}