mpv_end_file_reason enum

Since API version 1.9.

Inheritance
Available extensions

Values

MPV_END_FILE_REASON_EOF → const mpv_end_file_reason

The end of file was reached. Sometimes this may also happen on incomplete or corrupted files, or if the network connection was interrupted when playing a remote file. It also happens if the playback range was restricted with --end or --frames or similar.

const mpv_end_file_reason(0)
MPV_END_FILE_REASON_STOP → const mpv_end_file_reason

Playback was stopped by an external action (e.g. playlist controls).

const mpv_end_file_reason(2)
MPV_END_FILE_REASON_QUIT → const mpv_end_file_reason

Playback was stopped by the quit command or player shutdown.

const mpv_end_file_reason(3)
MPV_END_FILE_REASON_ERROR → const mpv_end_file_reason

Some kind of error happened that lead to playback abort. Does not necessarily happen on incomplete or broken files (in these cases, both MPV_END_FILE_REASON_ERROR or MPV_END_FILE_REASON_EOF are possible).

mpv_event_end_file.error will be set.

const mpv_end_file_reason(4)
MPV_END_FILE_REASON_REDIRECT → const mpv_end_file_reason

The file was a playlist or similar. When the playlist is read, its entries will be appended to the playlist after the entry of the current file, the entry of the current file is removed, and a MPV_EVENT_END_FILE event is sent with reason set to MPV_END_FILE_REASON_REDIRECT. Then playback continues with the playlist contents. Since API version 1.18.

const mpv_end_file_reason(5)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
final

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

Static Methods

fromValue(int value) mpv_end_file_reason

Constants

values → const List<mpv_end_file_reason>
A constant List of the values in this enum, in order of their declaration.