mpv_get_property_async method

int mpv_get_property_async(
  1. Pointer<mpv_handle> ctx,
  2. int reply_userdata,
  3. Pointer<Int8> name,
  4. int format,
)

Get a property asynchronously. You will receive the result of the operation as well as the property data with the MPV_EVENT_GET_PROPERTY_REPLY event. You should check the mpv_event.error field on the reply event.

Safe to be called from mpv render API threads.

@param reply_userdata see section about asynchronous calls @param name The property name. @param format see enum mpv_format. @return error code if sending the request failed

Implementation

int mpv_get_property_async(
  ffi.Pointer<mpv_handle> ctx,
  int reply_userdata,
  ffi.Pointer<ffi.Int8> name,
  int format,
) {
  return _mpv_get_property_async(
    ctx,
    reply_userdata,
    name,
    format,
  );
}