mpv_get_property_string method

Pointer<Int8> mpv_get_property_string(
  1. Pointer<mpv_handle> ctx,
  2. Pointer<Int8> name
)

Return the value of the property with the given name as string. This is equivalent to mpv_get_property() with MPV_FORMAT_STRING.

See MPV_FORMAT_STRING for character encoding issues.

On error, NULL is returned. Use mpv_get_property() if you want fine-grained error reporting.

@param name The property name. @return Property value, or NULL if the property can't be retrieved. Free the string with mpv_free().

Implementation

ffi.Pointer<ffi.Int8> mpv_get_property_string(
  ffi.Pointer<mpv_handle> ctx,
  ffi.Pointer<ffi.Int8> name,
) {
  return _mpv_get_property_string(
    ctx,
    name,
  );
}