MovaPlayFail class
One playback failure, fed to a IMovaRecoveryPolicy.
A plain value so the recovery rule is unit-testable with no player and no Flutter binding.
一次播放失败,喂给 IMovaRecoveryPolicy。
纯值对象,使恢复规则无需播放器或 Flutter 绑定即可被测试。
Constructors
Properties
- afterFirstFrame → bool
-
Whether this source had shown a frame before failing (a mid-stream failure).
final
- attempt → int
-
Consecutive failures on this address since the last first frame, from 1.
final
- error → Object?
-
The underlying error object, when there was one.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNextSource → bool
-
Whether an untried address remains after this one.
no setter
- isLive → bool
-
Whether the failing source is a live stream (
MovaSource.typeis live). Lets a policy treat a restartable live source differently from VOD.final - kind → MovaPlayFailKind
-
What went wrong.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceCount → int
-
How many addresses the source has (1 + alternatives).
final
- sourceIndex → int
-
Index into
MovaSource.urisof the failing address.final - streak → int
-
Consecutive failures across all addresses since the last first frame.
final
- uri → String
-
The failing address.
final
- waited → Duration
-
How long the attempt or stall lasted before it was declared failed.
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