Skip to main content

Type Alias: MpvEventKind

type MpvEventKind =
| "property"
| "startFile"
| "endFile"
| "seek"
| "playbackRestart"
| "log"
| "shutdown";

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

Discriminator of MpvEvent.

NOTE: this is a field rather than a per-variant string literal (i.e. the event type is one flat struct, not a TS discriminated union of 7 structs). Nitro cannot represent single-member string literal types — nitrogen fails with String literal "property" cannot be represented in C++ because it is ambiguous between a string and a discriminating union enum. See the task report for the full deviation note.