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;
|
||||
}
|
||||
|
||||
// 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 a new issue