forked from lavender/watch-party
don't send a pause event for the video ending
parent
26b3f78920
commit
2e64148912
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue