Skip to main content

Interface: PositionAnchor

Defined in: packages/player/src/state.ts:49

The fixed point from which projectPosition extrapolates.

Position is never streamed across the bridge. mpv tells us the truth only on discontinuities (seek, playback restart, pause/unpause, rate change, track change); between them the client extrapolates from this anchor.

Properties

position

readonly position: number;

Defined in: packages/player/src/state.ts:51

Known-good playback position, in seconds.


rate

readonly rate: number;

Defined in: packages/player/src/state.ts:55

The playback rate in effect from timestamp onwards.


timestamp

readonly timestamp: number;

Defined in: packages/player/src/state.ts:53

Date.now()-style millisecond timestamp at which position held.