Skip to main content

Interface: PropertyEvent

Defined in: packages/player/src/events.ts:16

A property observation changed (or became unavailable).

Remarks

value is undefined when mpv reported the property as currently unavailable (MPV_FORMAT_NONE) — e.g. duration while the core is idle. That is a real state transition, not a dropped event.

Properties

kind

readonly kind: "property";

Defined in: packages/player/src/events.ts:17


name

readonly name: string;

Defined in: packages/player/src/events.ts:19

The observed mpv property name, exactly as passed to observeProperty.


value

readonly value: MpvPropertyValue | undefined;

Defined in: packages/player/src/events.ts:21

The new value, in the format the property was observed in.