* fixes for better video buffering (?)
This commit is contained in:
parent
b8187ce281
commit
c6366ff812
|
@ -282,7 +282,9 @@ window.addEventListener('DOMContentLoaded', (event) => {
|
||||||
const waiting = setInterval(()=> {
|
const waiting = setInterval(()=> {
|
||||||
if (document.querySelector("video").readyState == 4) {
|
if (document.querySelector("video").readyState == 4) {
|
||||||
clearInterval(waiting);
|
clearInterval(waiting);
|
||||||
toggleVideo(true);
|
setTimeout(() => {
|
||||||
|
toggleVideo(true);
|
||||||
|
},150); // let the video buffer a tiny bit more
|
||||||
} else {
|
} else {
|
||||||
console.log("waiting...")
|
console.log("waiting...")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue