Skip to content

Commit

Permalink
update if skip silence button is shown on seek (#1326)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Humphreys <[email protected]>
  • Loading branch information
Mjaethers authored and SebiWrn committed May 7, 2024
1 parent c2ec32f commit 6f52a52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/ts/TUMLiveVjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ export const skipSilence = function (options) {
}, intervalMillis);
});

// Triggered when user seeks
players[j].on("seeked", () => {
toggleSkipSilence();
});

// Updates if skip silence button be shown
const toggleSkipSilence = () => {
const ctime = players[j].currentTime();
let shouldShow = false;
Expand Down

0 comments on commit 6f52a52

Please sign in to comment.