From 4510449225eeb3797b618db1b8ab6d7936d534db Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Tue, 19 Jul 2022 11:55:52 +0200 Subject: [PATCH] next attempt Signed-off-by: Christian Richter --- assets/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/index.html b/assets/index.html index e021726..69cbfdc 100644 --- a/assets/index.html +++ b/assets/index.html @@ -90,9 +90,8 @@ var done = false; function onPlayerStateChange(event) { if (event.data == 0) { - console.log("playing stopped"); - // it seems like there is a race condition happening here playNext(); + console.log("playing stopped"); } //if (event.data == YT.PlayerState.PLAYING && !done) { // setTimeout(stopVideo, 6000); -- 2.49.1