Skip to main content

Interface: ChapterEntry

Defined in: packages/player/src/specs/mpv-client.nitro.ts:270

One chapter of the current entry, as read from the chapter-list node property.

Remarks

mpv 0.41.0 input.rst documents the node this is built from verbatim:

MPV_FORMAT_NODE_ARRAY
MPV_FORMAT_NODE_MAP (for each chapter)
"title" MPV_FORMAT_STRING
"time" MPV_FORMAT_DOUBLE

Both members are carried across the bridge because both are the feature: without title a chapter list is a list of numbers, and without time it cannot be seeked to.

Properties

start

readonly start: number;

Defined in: packages/player/src/specs/mpv-client.nitro.ts:278

chapter-list/N/time — "Chapter start time in seconds as float".


title?

readonly optional title?: string;

Defined in: packages/player/src/specs/mpv-client.nitro.ts:276

chapter-list/N/title — "Chapter title as stored in the file. Not always available" (input.rst), hence optional. Podcast and m4b chapters generally have one; a DVD-style chapter mark may not.