mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-20 06:52:05 +00:00
fix seekbar stuck at 0:00
This commit is contained in:
parent
e8417a5144
commit
0555f507e3
1 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue