From ffcbd21eb634110cf6cd36d43ad10b91c32f0b79 Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Tue, 24 Mar 2026 01:03:24 +0100 Subject: [PATCH] Update YouTube iframe source to include autoplay, controls, and mute options --- Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js b/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js index e535866..a9d5fce 100644 --- a/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js +++ b/Jellyfin.Plugin.MediaBarEnhanced/Web/mediaBarEnhanced.js @@ -1806,7 +1806,7 @@ const SlideCreator = { // Create an iframe upfront const ytPlayerIframe = SlideUtils.createElement("iframe", { id: `youtube-player-${itemId}`, - src: `https://www.youtube-nocookie.com/embed/${videoId}?enablejsapi=1&origin=${encodeURIComponent(window.location.origin)}`, + src: `https://www.youtube-nocookie.com/embed/${videoId}?enablejsapi=1&autoplay=0&controls=0&playsinline=1&mute=${STATE.slideshow.isMuted ? 1 : 0}&origin=${encodeURIComponent(window.location.origin)}`, style: "width: 100%; height: 100%; border: none;", allow: "autoplay; encrypted-media", referrerpolicy: "strict-origin-when-cross-origin",