NoMediaResolver class final
The media-less MediaResolver: valid only for compositions that declare no media at all.
Resolving an empty source list succeeds (there is nothing to do); any
actual media source is a typed failure pointing at the MediaRepository,
the real resolver wired as the mediaResolverProvider default. This stays
exported and is the documented choice when a composition is deliberately
media-free.
- Implemented types
Constructors
- NoMediaResolver()
-
Creates the resolver; it is stateless and const.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bandTableFor(
AudioSource source) → BandTable -
The analysed
BandTablefor audiosource— synchronous by contract, so theReactiveScopecan serve it down to the reactive effects.override -
beatGridFor(
AudioSource source) → BeatGrid -
The detected
BeatGridfor audiosource— synchronous by contract, soTrigger.beatresolves against it during timing resolution.override -
clipMetadataFor(
MediaSource source) → ClipMetadata -
The probed ClipMetadata of clip
source— synchronous by contract, so the resampler can read its source fps and frame count during the frame loop.override -
cuesFor(
CaptionSource source) → List< CaptionCue> -
The parsed CaptionCues for caption
source— synchronous by contract, so the caption layer can pick the active cue at the current frame.override -
decodedClipFrame(
MediaSource source, int sourceFrame) → Image -
The pre-decoded image of clip
sourceatsourceFrame— synchronous by contract, so paint hands it straight to aRawImage.override -
decodedImageFor(
MediaSource source) → Image -
The pre-decoded image for
source— synchronous by contract, so paint can hand it straight to aRawImagewith no async-in-frame.override -
decodedSnapshotFor(
SnapshotSource source) → Image -
The pre-decoded image for snapshot
source— synchronous by contract, so paint hands it straight to aRawImagewith no async-in-frame.override -
materializedAudioPathFor(
AudioSource source) → String -
The materialized local file path for audio
source— synchronous by contract, so the encode-plan builder can hand it to an audio track node.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
preResolveAll(
Iterable< MediaSource> sources) → Future<void> -
Resolves every source in
sources(download, read, decode) so that resolvedFor and decodedImageFor can answer synchronously during the frame loop.override -
preResolveAudio(
Iterable< AudioSource> sources) → Future<void> -
Materializes every audio source in
sourcesinto a sandbox file the encoder can-i, validating and allowlisting each one first.override -
preResolveCaptions(
CaptionSource source) → Future< void> -
Reads and parses caption
sourceinto CaptionCues before the frame loop, so cuesFor can serve them synchronously during it.override -
preResolveClip(
MediaSource source, Iterable< int> sourceFrames) → Future<void> -
Probes
sourceand extracts every source frame insourceFrames, decoding each to aui.Imagecached by(source, frame)so paint can read it synchronously.override -
preResolveReactive(
Iterable< AudioSource> sources, {required BeatDetectionService beatDetector, required FrequencyAnalyzer analyzer, required int fps, required int totalFrames}) → Future<void> -
Analyses every reactive audio source in
sourcesinto aBeatGridand aBandTablebefore the frame loop.override -
preResolveSnapshots(
Iterable< SnapshotSource> sources, SnapshotService service) → Future<void> -
Rasterizes every snapshot in
sourcesthroughserviceand decodes each raster to aui.Imagecached by content hash, so decodedSnapshotFor can answer synchronously during the frame loop.override -
probeClip(
MediaSource source) → Future< ClipMetadata> -
Probes clip
sourcefor its ClipMetadata (fps, frame count, size) and caches it, so the render's clip pre-pass can plan which source frames to extract before calling preResolveClip.override -
resolvedFor(
MediaSource source) → ResolvedMedia -
The pre-resolved bytes and content hash for
source— synchronous by contract.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited