MPV_EVENT_PAUSE constant

int const MPV_EVENT_PAUSE

Playback was paused. This indicates the user pause state.

The user pause state is the state the user requested (changed with the "pause" property). There is an internal pause state too, which is entered if e.g. the network is too slow (the "core-idle" property generally indicates whether the core is playing or waiting).

This event is sent whenever any pause states change, not only the user state. You might get multiple events in a row while these states change independently. But the event ID sent always indicates the user pause state.

If you don't want to deal with this, use mpv_observe_property() on the "pause" property and ignore MPV_EVENT_PAUSE/UNPAUSE. Likewise, the "core-idle" property tells you whether video is actually playing or not.

@deprecated The event is redundant with mpv_observe_property() as mentioned above, and might be removed in the far future.

Implementation

static const int MPV_EVENT_PAUSE = 12;