PlayerError enum

Error code for audio player .

Inheritance

Constructors

PlayerError()
const

Values

ok → const PlayerError

OK.

formatNotSupport → const PlayerError

Format not supported.

invalidPath → const PlayerError

Invalid file path.

invalidState → const PlayerError

The prerequisite is not met. Check the specific API doc.

invalidPosition → const PlayerError

Invalid position.

invalidVolume → const PlayerError

Invalid volume.

invalidPitch → const PlayerError

Invalid pitch value.

invalidAudioTrackIndex → const PlayerError

Invalid audio track.

invalidPlaybackSpeed → const PlayerError

Invalid playback speed.

invalidEffectId → const PlayerError

Invalid effect ID. Receive this error code when you call other APIs before the audio file is preloaded or opened.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

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