Skip to main content

Interface: SeekStartedEvent

Defined in: packages/player/src/player.ts:820

Payload of the seekStarted event.

Properties

from

readonly from: number;

Defined in: packages/player/src/player.ts:831

The projected position, in seconds, at the instant the jump began — i.e. where playback was leaving from.

This is the projection, not a fresh read: the truth is not knowable until mpv restarts, and paying a synchronous time-pos round-trip here would put one on the event path for an analytics signal.


reason

readonly reason: PositionDiscontinuityReason;

Defined in: packages/player/src/player.ts:822

What caused it. See PositionDiscontinuityReason.