From 1fdd7adf3c74b90fc8b54bac92e81f657de9b397 Mon Sep 17 00:00:00 2001 From: codex Date: Wed, 10 Jun 2026 20:45:55 +0200 Subject: [PATCH] Restore join YouTube start prompt --- public/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/app.js b/public/app.js index 594198f..e6ad814 100644 --- a/public/app.js +++ b/public/app.js @@ -432,7 +432,7 @@ function requestYoutubePlayback(player, videoId, position, allowStartPrompt = fa ) { setYoutubeStartPromptVisible(true); } - }, 3300); + }, 900); } async function sendWatchState({ @@ -513,9 +513,9 @@ function handleYoutubeStateChange(event) { desiredYoutubePlaying = action === "play"; if (desiredYoutubePlaying) { syncedPlaybackRetryUntil = 0; - youtubeStartPromptAllowedUntil = 0; setYoutubeStartPromptVisible(false); } else { + youtubeStartPromptAllowedUntil = 0; setYoutubeStartPromptVisible(false); } const state = currentWatchState(action === "play"); @@ -598,7 +598,6 @@ async function applyWatchState(state, { suppressEvents = true, allowStartPrompt } if (shouldPlay) { - setYoutubeStartPromptVisible(allowStartPrompt); const sameVideo = player.getVideoData?.().video_id === currentYoutubeVideoId; const playerState = player.getPlayerState?.(); if (sameVideo && ![YT.PlayerState.UNSTARTED, YT.PlayerState.CUED].includes(playerState)) {