don't send a pause event for the video ending
parent
26b3f78920
commit
2e64148912
|
@ -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 New Issue