Type Alias: PlayerEvent
type PlayerEvent =
| PropertyEvent
| StartFileEvent
| EndFileEvent
| SeekEvent
| PlaybackRestartEvent
| LogEvent
| ShutdownEvent;
Defined in: packages/player/src/events.ts:82
A proper TypeScript discriminated union over the flat MpvEvent struct that crosses the Nitro boundary.
Remarks
Nitro cannot represent per-variant string literal discriminators, so the
native side ships one flat struct whose populated fields depend on kind
(see docs/specs/player-core.md §2.5). toPlayerEvent is the single
place that translation happens; everything above it switches exhaustively on
this union.