don't send a pause event for the video ending

pull/5/head
maia arson crimew 2021-11-23 02:22:19 +01:00
parent 26b3f78920
commit 2e64148912
1 changed files with 5 additions and 0 deletions

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