Skip to main content

Interface: Milestone

Defined in: packages/player/src/hooks/useMilestones.ts:8

A milestone that has been reached, exactly once per playthrough.

Properties

duration

readonly duration: number;

Defined in: packages/player/src/hooks/useMilestones.ts:14

Duration of the entry it belongs to, in seconds.


index

readonly index: number;

Defined in: packages/player/src/hooks/useMilestones.ts:16

Playlist index of that entry.


percent

readonly percent: number;

Defined in: packages/player/src/hooks/useMilestones.ts:10

The mark that fired, as a percentage of the entry's duration.


position

readonly position: number;

Defined in: packages/player/src/hooks/useMilestones.ts:12

Projected position when it fired, in seconds.