Skip to content

Commit

Permalink
Posting updates every 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
boggydigital committed Aug 27, 2024
1 parent 2b7c472 commit ff3b9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest/templates/watch.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
video.addEventListener('timeupdate', (e) => {
let now = new Date();
let elapsed = now - lastProgressUpdate;
if (elapsed > 3000) {
if (elapsed > 5000) {
if (prg) {prg.value = video.currentTime}
fetch('/progress', {
method: 'post',
Expand Down

0 comments on commit ff3b9be

Please sign in to comment.