don't send a pause event for the video ending

This commit is contained in:
maia arson crimew 2021-11-23 02:22:19 +01:00
parent 26b3f78920
commit 2e64148912

View file

@ -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",