mpv_detach_destroy method

void mpv_detach_destroy(
  1. Pointer<mpv_handle> ctx
)

@deprecated use mpv_destroy(), which has exactly the same semantics (the deprecation is a mere rename)

Since mpv client API version 1.29: 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.

Before mpv client API version 1.29: This left the player running. If you want to be sure that the player is terminated, send a "quit" command, and wait until the MPV_EVENT_SHUTDOWN event is received, or use mpv_terminate_destroy().

Implementation

void mpv_detach_destroy(
  ffi.Pointer<mpv_handle> ctx,
) {
  return _mpv_detach_destroy(
    ctx,
  );
}