mpv_request_event method
Enable or disable the given event.
Some events are enabled by default. Some events can't be disabled.
(Informational note: currently, all events are enabled by default, except MPV_EVENT_TICK.)
Safe to be called from mpv render API threads.
@param event See enum mpv_event_id. @param enable 1 to enable receiving this event, 0 to disable it. @return error code
Implementation
int mpv_request_event(
ffi.Pointer<mpv_handle> ctx,
int event,
int enable,
) {
return _mpv_request_event(
ctx,
event,
enable,
);
}