mpv_format class abstract

Data format for options and properties. The API functions to get/set properties and options support multiple formats, and this enum describes them.

Constructors

mpv_format()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

MPV_FORMAT_BYTE_ARRAY → const int
A raw, untyped byte array. Only used only with mpv_node, and only in some very specific situations. (Some commands use it.)
MPV_FORMAT_DOUBLE → const int
The basic type is double.
MPV_FORMAT_FLAG → const int
The basic type is int. The only allowed values are 0 ("no") and 1 ("yes").
MPV_FORMAT_INT64 → const int
The basic type is int64_t.
MPV_FORMAT_NODE → const int
The type is mpv_node.
MPV_FORMAT_NODE_ARRAY → const int
Used with mpv_node only. Can usually not be used directly.
MPV_FORMAT_NODE_MAP → const int
See MPV_FORMAT_NODE_ARRAY.
MPV_FORMAT_NONE → const int
Invalid. Sometimes used for empty values. This is always defined to 0, so a normal 0-init of mpv_format (or e.g. mpv_node) is guaranteed to set this it to MPV_FORMAT_NONE (which makes some things saner as consequence).
MPV_FORMAT_OSD_STRING → const int
The basic type is char*. It returns the OSD property string, like using ${property} in input.conf (see input.rst). In many cases, this is the same as the raw string, but in other cases it's formatted for display on OSD. It's intended to be human readable. Do not attempt to parse these strings.
MPV_FORMAT_STRING → const int
The basic type is char*. It returns the raw property string, like using ${=property} in input.conf (see input.rst).