From c74a1769c3e839e288dd34a32403310323f1c931 Mon Sep 17 00:00:00 2001 From: ashley Date: Fri, 10 Oct 2025 21:19:36 +0200 Subject: [PATCH] fix stuff + add stuff --- css/player-base.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/css/player-base.js b/css/player-base.js index f39dd063..c86de058 100644 --- a/css/player-base.js +++ b/css/player-base.js @@ -256,11 +256,25 @@ document.addEventListener("DOMContentLoaded", () => { } // if one fails, we try again for both - if (!vOk && aOk) { - try { video.play().catch(() => showError('Video failed to start.')); } catch {} + // and reload if like, you know, the fuccking video fails because + // youtube for some reason blocks us alot i dont know why i fucking hate you youtube + // legit, im just hating youtube alot these days, they are terrible + // - ashley + if (!vOk && aOk) { + try { + video.play().catch(() => { + showError('Video failed to start.'); + setTimeout(() => { + video.play().catch(() => showError('Video retry failed.')); + }, 3000); + }); + } catch {} } + if (vOk && !aOk) { - try { audio.play().catch(() => showError('Audio failed to start.')); } catch {} + try { + audio.play().catch(() => showError('Audio failed to start.')); + } catch {} } if (!syncInterval) startSyncLoop();