mpv_render_context_set_update_callback

Set the callback that notifies you when a new video frame is available, or if the video display configuration somehow changed and requires a redraw. Similar to mpv_set_wakeup_callback(), you must not call any mpv API from the callback, and all the other listed restrictions apply (such as not exiting the callback by throwing exceptions).

This can be called from any thread, except from an update callback. In case of the OpenGL backend, no OpenGL state or API is accessed.

Calling this will raise an update callback immediately.

@param callback callback(callback_ctx) is called if the frame should be redrawn @param callback_ctx opaque argument to the callback

extern (C)
void
mpv_render_context_set_update_callback

Meta