From 6f52a52892d664e1e9e0bcbe9b72c264606fed69 Mon Sep 17 00:00:00 2001 From: Matthew Humphreys Date: Tue, 23 Apr 2024 17:49:38 +0200 Subject: [PATCH] update if skip silence button is shown on seek (#1326) Signed-off-by: Matthew Humphreys --- web/ts/TUMLiveVjs.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/ts/TUMLiveVjs.ts b/web/ts/TUMLiveVjs.ts index 9d5acba9f..9553b349f 100644 --- a/web/ts/TUMLiveVjs.ts +++ b/web/ts/TUMLiveVjs.ts @@ -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;