mpv_request_log_messages method

int mpv_request_log_messages(
  1. Pointer<mpv_handle> ctx,
  2. Pointer<Int8> min_level
)

Enable or disable receiving of log messages. These are the messages the command line player prints to the terminal. This call sets the minimum required log level for a message to be received with MPV_EVENT_LOG_MESSAGE.

@param min_level Minimal log level as string. Valid log levels: no fatal error warn info v debug trace The value "no" disables all messages. This is the default. An exception is the value "terminal-default", which uses the log level as set by the "--msg-level" option. This works even if the terminal is disabled. (Since API version 1.19.) Also see mpv_log_level. @return error code

Implementation

int mpv_request_log_messages(
  ffi.Pointer<mpv_handle> ctx,
  ffi.Pointer<ffi.Int8> min_level,
) {
  return _mpv_request_log_messages(
    ctx,
    min_level,
  );
}