Interface: Progress
Defined in: packages/player/src/hooks/useProgress.ts:7
What useProgress returns.
Properties
buffered
readonly buffered: number | undefined;
Defined in: packages/player/src/hooks/useProgress.ts:19
Absolute timestamp (seconds) the demuxer has buffered up to — directly
comparable to position. undefined when mpv has no estimate.
duration
readonly duration: number | undefined;
Defined in: packages/player/src/hooks/useProgress.ts:14
Duration of the current entry in seconds, when known. Always undefined
while isLive — see PlayerState.duration.
isLive
readonly isLive: boolean;
Defined in: packages/player/src/hooks/useProgress.ts:28
Whether the current entry is an endless live stream (PlayerState.isLive).
Render elapsed time and a "live" badge rather than a scrubber when this is
true: duration is undefined there not because it is late, but because
there is no such number.
position
readonly position: number;
Defined in: packages/player/src/hooks/useProgress.ts:9
Projected playback position in seconds.