mpv_client_id method

int mpv_client_id(
  1. Pointer<mpv_handle> ctx
)

Return the ID of this client handle. Every client has its own unique ID. This ID is never reused by the core, even if the mpv_handle at hand gets destroyed and new handles get allocated.

IDs are never 0 or negative.

Some mpv APIs (not necessarily all) accept a name in the form "@

@return The client ID.

Implementation

int mpv_client_id(
  ffi.Pointer<mpv_handle> ctx,
) {
  return _mpv_client_id(
    ctx,
  );
}