Skip to main content

Interface: LoopRaw

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

The raw loop-file / loop-playlist strings behind PlayerState.loop.

Both are kept because LoopMode is lossy: deriving it needs both values, and a pure reducer has nowhere else to remember the other one. mpv's value domain is "no" | "inf" | "force" | <count>, which is why they are observed as strings (mpv's node format for these options changes with the value — flag for no, string for inf, int64 for a count).

Properties

file

readonly file: string;

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

mpv's loop-file. "no"/"0" mean no track repeat.


playlist

readonly playlist: string;

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

mpv's loop-playlist. "no"/"1" mean no playlist repeat.