IMovaCutover class abstract

The cutover capability surface consumers drive, kept separate from IMovaApi so callers like MovaAds depend on the cutover verbs alone and can be tested against a tiny fake.

调用方驱动的切换能力面,与 IMovaApi 分开,使 MovaAds 这类调用方 只依赖切换动词,并能对着一个极小的假对象做测试。

Implementers

Constructors

IMovaCutover()

Properties

cutoverEnabled → bool
Whether seamless cutover is enabled.
no setter
cutoverPhase → MovaCutoverPhase
The current cutover phase.
no setter
cutoverPhases → Stream<MovaCutoverPhase>
Emits every cutover phase transition.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

abandon() → Future<void>
Tears down any shadow player without cutting over.
commit({bool waitForReady = false}) → Future<bool>
Promotes a ready shadow player to be the live one and disposes the old.
cutoverTo(MovaSource source, {Duration at = Duration.zero, double? rate}) → Future<bool>
Warms source and commits as soon as it is ready, falling back to a plain open() on the live player when warming is declined or times out.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare(MovaSource source, {Duration at = Duration.zero, MovaWarmCue cue = const MovaWarmCue(), MovaWarmPlan plan = const MovaWarmPlan()}) → Future<void>
Asks the configured trigger whether to start warming source at at, and starts a shadow player if it says yes.
toString() → String
A string representation of this object.
inherited

Operators

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