[][src]Function libmpv_sys::mpv_command

pub unsafe extern "C" fn mpv_command(
    ctx: *mut mpv_handle,
    args: *mut *const c_char
) -> c_int

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).

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