forked from lavender/watch-party
Compare commits
1 Commits
main
...
experiment
Author | SHA1 | Date |
---|---|---|
Charlotte Som | 4dfe6a544d |
|
@ -86,6 +86,7 @@ const setupOutgoingEvents = (video, socket) => {
|
||||||
|
|
||||||
video.addEventListener("pause", async (event) => {
|
video.addEventListener("pause", async (event) => {
|
||||||
if (outgoingDebounce || !video.controls) {
|
if (outgoingDebounce || !video.controls) {
|
||||||
|
event.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,6 +108,7 @@ const setupOutgoingEvents = (video, socket) => {
|
||||||
|
|
||||||
video.addEventListener("play", (event) => {
|
video.addEventListener("play", (event) => {
|
||||||
if (outgoingDebounce || !video.controls) {
|
if (outgoingDebounce || !video.controls) {
|
||||||
|
event.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,6 +132,7 @@ const setupOutgoingEvents = (video, socket) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outgoingDebounce || !video.controls) {
|
if (outgoingDebounce || !video.controls) {
|
||||||
|
event.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue