mpv_command method

int mpv_command(
  1. Pointer<mpv_handle> ctx,
  2. Pointer<Pointer<Int8>> args
)

Send a command to the player. Commands are the same as those used in input.conf, except that this function takes parameters in a pre-split form.

The commands and their parameters are documented in input.rst.

Does not use OSD and string expansion by default (unlike mpv_command_string() and input.conf).

@paramin args NULL-terminated list of strings. Usually, the first item is the command, and the following items are arguments. @return error code

Implementation

int mpv_command(
  ffi.Pointer<mpv_handle> ctx,
  ffi.Pointer<ffi.Pointer<ffi.Int8>> args,
) {
  return _mpv_command(
    ctx,
    args,
  );
}