observeProperty method

void observeProperty(
  1. String property,
  2. mpv_format format, {
  3. int propertyId = 0,
})

Implementation

void observeProperty(
  String property,
  mpv_format format, {
  int propertyId = 0,
}) {
  final name = property.toNativeUtf8();
  Library.libmpv.mpv_observe_property(
    ctx,
    propertyId,
    name.cast(),
    format,
  );
  calloc.free(name);
}