mpv_destroy method

void mpv_destroy(
  1. Pointer<mpv_handle> ctx
)

Disconnect and destroy the mpv_handle. ctx will be deallocated with this API call.

If the last mpv_handle is detached, the core player is destroyed. In addition, if there are only weak mpv_handles (such as created by mpv_create_weak_client() or internal scripts), these mpv_handles will be sent MPV_EVENT_SHUTDOWN. This function may block until these clients have responded to the shutdown event, and the core is finally destroyed.

Implementation

void mpv_destroy(
  ffi.Pointer<mpv_handle> ctx,
) {
  return _mpv_destroy(
    ctx,
  );
}