MpvEndFileReason enum

Why a file ended — mirrors mpv_end_file_reason from the C API.

See the mpv documentation for details.

Inheritance
Available extensions

Values

eof → const MpvEndFileReason

Playback ended naturally (reached end of file).

Important: this is also reported when a network connection is interrupted mid-stream. Do not assume this always means the file played to completion.

const MpvEndFileReason(MpvEndFileReason._eof)
stop → const MpvEndFileReason

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

const MpvEndFileReason(MpvEndFileReason._stop)
quit → const MpvEndFileReason

The player is quitting.

const MpvEndFileReason(MpvEndFileReason._quit)
error → const MpvEndFileReason

An error caused playback to abort. The associated MpvEndFileError.code contains the specific mpv error code.

const MpvEndFileReason(MpvEndFileReason._error)
redirect → const MpvEndFileReason

The file was a playlist or redirect — its entries were appended to the playlist and this entry was removed.

const MpvEndFileReason(MpvEndFileReason._redirect)

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
The raw integer value matching the C API constant.
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) MpvEndFileReason
Converts a raw mpv integer reason code to the corresponding enum value.

Constants

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