MovaDefaultRecovery class

The policy in effect when MovaRecoveryOpts.policy is null: VOD sources follow vod (the long-standing MovaRetryThenFailover), live sources follow live (MovaLiveReconnect), which keeps reconnecting.

MovaRecoveryOpts.policy 为 null 时生效的策略:点播走 vod(一直以来的 MovaRetryThenFailover),直播走 live(MovaLiveReconnect,持续重连)。

Example / 示例:

const MovaDefaultRecovery(live: MovaLiveReconnect(maxDelay: Duration(seconds: 5)));
Implemented types

Constructors

MovaDefaultRecovery({IMovaRecoveryPolicy vod = const MovaRetryThenFailover(), IMovaRecoveryPolicy live = const MovaLiveReconnect()})
Creates the policy.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
live → IMovaRecoveryPolicy
Rule for live sources.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
vod → IMovaRecoveryPolicy
Rule for VOD sources.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onFailure(MovaPlayFail fail) → MovaRecoveryDecision
Answers what to do about fail.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited