From 2e64148912929e5d20ab6849b955b87805ee1d33 Mon Sep 17 00:00:00 2001 From: maia tillie arson crimew Date: Tue, 23 Nov 2021 02:22:19 +0100 Subject: [PATCH] don't send a pause event for the video ending --- frontend/lib/watch-session.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/lib/watch-session.mjs b/frontend/lib/watch-session.mjs index 404990a..49feac2 100644 --- a/frontend/lib/watch-session.mjs +++ b/frontend/lib/watch-session.mjs @@ -89,6 +89,11 @@ const setupOutgoingEvents = (video, socket) => { return; } + // don't send a pause event for the video ending + if (video.currentTime == video.duration) { + return; + } + socket.send( JSON.stringify({ op: "SetPlaying",