fix: move timeline elements into player state

This commit is contained in:
2026-05-10 18:43:15 +02:00
parent 29b49dfa39
commit 353edaa871
2 changed files with 16 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ export const getBufferedEnd = (): number => {
}
export const updateTimeline = (currentTime: number): void => {
const { progress, scrubber, timeDisplay, durationDisplay, buffered } = getTimelineEls()
const { progress, scrubber, timeDisplay, durationDisplay, buffered } = state
const b = getBounds()
if (b.duration <= 0) {