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.
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.