mpv_set_property_async method

int mpv_set_property_async(
  1. Pointer<mpv_handle> ctx,
  2. int reply_userdata,
  3. Pointer<Int8> name,
  4. int format,
  5. Pointer<Void> data,
)

Set a property asynchronously. You will receive the result of the operation as MPV_EVENT_SET_PROPERTY_REPLY event. The mpv_event.error field will contain the result status of the operation. Otherwise, this function is similar to mpv_set_property().

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. @paramin data Option value. The value will be copied by the function. It will never be modified by the client API. @return error code if sending the request failed

Implementation

int mpv_set_property_async(
  ffi.Pointer<mpv_handle> ctx,
  int reply_userdata,
  ffi.Pointer<ffi.Int8> name,
  int format,
  ffi.Pointer<ffi.Void> data,
) {
  return _mpv_set_property_async(
    ctx,
    reply_userdata,
    name,
    format,
    data,
  );
}