Respond to a MPV_EVENT_HOOK event. You must call this after you have handled
the event. There is no way to "cancel" or "stop" the hook.
Calling this will will typically unblock the player for whatever the hook
is responsible for (e.g. for the "on_load" hook it lets it continue
playback).
It is explicitly undefined behavior to call this more than once for each
MPV_EVENT_HOOK, to pass an incorrect ID, or to call this on a mpv_handle
different from the one that registered the handler and received the event.
@param id This must be the value of the mpv_event_hook.id field for the
corresponding MPV_EVENT_HOOK.
@return error code
Respond to a MPV_EVENT_HOOK event. You must call this after you have handled the event. There is no way to "cancel" or "stop" the hook.
Calling this will will typically unblock the player for whatever the hook is responsible for (e.g. for the "on_load" hook it lets it continue playback).
It is explicitly undefined behavior to call this more than once for each MPV_EVENT_HOOK, to pass an incorrect ID, or to call this on a mpv_handle different from the one that registered the handler and received the event.
@param id This must be the value of the mpv_event_hook.id field for the corresponding MPV_EVENT_HOOK. @return error code