Skip to content

Commit

Permalink
update if skip silence button is shown on seek
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Humphreys <[email protected]>
  • Loading branch information
Mjaethers committed Feb 4, 2024
1 parent f5b7bd7 commit 9eeabe8
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 9eeabe8

Please sign in to comment.