fix seekbar stuck at 0:00

This commit is contained in:
Pas 2025-03-11 11:25:18 -06:00
parent e8417a5144
commit 0555f507e3

View file

@ -317,6 +317,10 @@ export function makeVideoElementDisplayInterface(): DisplayInterface {
videoElement.addEventListener("ratechange", () => {
if (videoElement) emit("playbackrate", videoElement.playbackRate);
});
videoElement.addEventListener("durationchange", () => {
emit("duration", videoElement?.duration ?? 0);
});
}
function unloadSource() {