mpv_event_id class abstract

Constructors

mpv_event_id()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

MPV_EVENT_AUDIO_RECONFIG → const int
Similar to MPV_EVENT_VIDEO_RECONFIG. This is relatively uninteresting, because there is no such thing as audio output embedding.
MPV_EVENT_CHAPTER_CHANGE → const int
Happens when the current chapter changes.
MPV_EVENT_CLIENT_MESSAGE → const int
Triggered by the script-message input command. The command uses the first argument of the command as client name (see mpv_client_name()) to dispatch the message, and passes along all arguments starting from the second argument as strings. See also mpv_event and mpv_event_client_message.
MPV_EVENT_COMMAND_REPLY → const int
Reply to a mpv_command_async() or mpv_command_node_async() request. See also mpv_event and mpv_event_command.
MPV_EVENT_END_FILE → const int
Notification after playback end (after the file was unloaded). See also mpv_event and mpv_event_end_file.
MPV_EVENT_FILE_LOADED → const int
Notification when the file has been loaded (headers were read etc.), and decoding starts.
MPV_EVENT_GET_PROPERTY_REPLY → const int
Reply to a mpv_get_property_async() request. See also mpv_event and mpv_event_property.
MPV_EVENT_HOOK → const int
Triggered if a hook handler was registered with mpv_hook_add(), and the hook is invoked. If you receive this, you must handle it, and continue the hook with mpv_hook_continue(). See also mpv_event and mpv_event_hook.
MPV_EVENT_IDLE → const int
Idle mode was entered. In this mode, no file is played, and the playback core waits for new commands. (The command line player normally quits instead of entering idle mode, unless --idle was specified. If mpv was started with mpv_create(), idle mode is enabled by default.)
MPV_EVENT_LOG_MESSAGE → const int
See mpv_request_log_messages().
MPV_EVENT_METADATA_UPDATE → const int
Happens when metadata (like file tags) is possibly updated. (It's left unspecified whether this happens on file start or only when it changes within a file.)
MPV_EVENT_NONE → const int
Nothing happened. Happens on timeouts or sporadic wakeups.
MPV_EVENT_PAUSE → const int
Playback was paused. This indicates the user pause state.
MPV_EVENT_PLAYBACK_RESTART → const int
There was a discontinuity of some sort (like a seek), and playback was reinitialized. Usually happens on start of playback and after seeking. The main purpose is allowing the client to detect when a seek request is finished.
MPV_EVENT_PROPERTY_CHANGE → const int
Event sent due to mpv_observe_property(). See also mpv_event and mpv_event_property.
MPV_EVENT_QUEUE_OVERFLOW → const int
Happens if the internal per-mpv_handle ringbuffer overflows, and at least 1 event had to be dropped. This can happen if the client doesn't read the event queue quickly enough with mpv_wait_event(), or if the client makes a very large number of asynchronous calls at once.
MPV_EVENT_SCRIPT_INPUT_DISPATCH → const int
@deprecated This was used internally with the internal "script_dispatch" command to dispatch keyboard and mouse input for the OSC. It was never useful in general and has been completely replaced with "script-binding". This event never happens anymore, and is included in this header only for compatibility.
MPV_EVENT_SEEK → const int
Happens when a seek was initiated. Playback stops. Usually it will resume with MPV_EVENT_PLAYBACK_RESTART as soon as the seek is finished.
MPV_EVENT_SET_PROPERTY_REPLY → const int
Reply to a mpv_set_property_async() request. (Unlike MPV_EVENT_GET_PROPERTY, mpv_event_property is not used.)
MPV_EVENT_SHUTDOWN → const int
Happens when the player quits. The player enters a state where it tries to disconnect all clients. Most requests to the player will fail, and the client should react to this and quit with mpv_destroy() as soon as possible.
MPV_EVENT_START_FILE → const int
Notification before playback start of a file (before the file is loaded). See also mpv_event and mpv_event_start_file.
MPV_EVENT_TICK → const int
Sent every time after a video frame is displayed. Note that currently, this will be sent in lower frequency if there is no video, or playback is paused - but that will be removed in the future, and it will be restricted to video frames only.
MPV_EVENT_TRACK_SWITCHED → const int
A video/audio/subtitle track was switched on or off.
MPV_EVENT_TRACKS_CHANGED → const int
The list of video/audio/subtitle tracks was changed. (E.g. a new track was found. This doesn't necessarily indicate a track switch; for this, MPV_EVENT_TRACK_SWITCHED is used.)
MPV_EVENT_UNPAUSE → const int
Playback was unpaused. See MPV_EVENT_PAUSE for not so obvious details.
MPV_EVENT_VIDEO_RECONFIG → const int
Happens after video changed in some way. This can happen on resolution changes, pixel format changes, or video filter changes. The event is sent after the video filters and the VO are reconfigured. Applications embedding a mpv window should listen to this event in order to resize the window if needed. Note that this event can happen sporadically, and you should check yourself whether the video parameters really changed before doing something expensive.