PlayerException class
Captures the details of any error accessing, loading or playing an audio source, including an invalid or inaccessible URL, or an audio encoding that could not be understood.
- Implemented types
Constructors
-
PlayerException(int code, String? message, [Map<
String, dynamic> ? details])
Properties
- code → int
-
On iOS and macOS, maps to
NSError.code
. On Android, maps toExoPlaybackException.type
. On Web, maps toMediaError.code
.final -
details
→ Map<
String, dynamic> -
On Android/iOS/macOS, contains details of the error. For errors associated
with a particular audio source, the
"index"
key maps to the index of the audio source in the sequence.final - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
On iOS and macOS, maps to
NSError.localizedDescription
. On Android, maps toExoPlaybackException.getMessage()
. On Web, a generic message is provided.final - 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited