mirror of
https://git.lavender.software/lavender/watch-party.git
synced 2024-11-24 02:47:43 +00:00
don't send a pause event for the video ending
This commit is contained in:
parent
26b3f78920
commit
2e64148912
1 changed files with 5 additions and 0 deletions
|
@ -89,6 +89,11 @@ const setupOutgoingEvents = (video, socket) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// don't send a pause event for the video ending
|
||||||
|
if (video.currentTime == video.duration) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
socket.send(
|
socket.send(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
op: "SetPlaying",
|
op: "SetPlaying",
|
||||||
|
|
Loading…
Reference in a new issue