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 BandTable for audio source — synchronous by contract, so the ReactiveScope can serve it down to the reactive effects.
override
beatGridFor(AudioSource source) → BeatGrid
The detected BeatGrid for audio source — synchronous by contract, so Trigger.beat resolves 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 source at sourceFrame — synchronous by contract, so paint hands it straight to a RawImage.
override
decodedImageFor(MediaSource source) Image
The pre-decoded image for source — synchronous by contract, so paint can hand it straight to a RawImage with 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 a RawImage with 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 sources into a sandbox file the encoder can -i, validating and allowlisting each one first.
override
preResolveCaptions(CaptionSource source) Future<void>
Reads and parses caption source into CaptionCues before the frame loop, so cuesFor can serve them synchronously during it.
override
preResolveClip(MediaSource source, Iterable<int> sourceFrames) Future<void>
Probes source and extracts every source frame in sourceFrames, decoding each to a ui.Image cached 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 sources into a BeatGrid and a BandTable before the frame loop.
override
preResolveSnapshots(Iterable<SnapshotSource> sources, SnapshotService service) Future<void>
Rasterizes every snapshot in sources through service and decodes each raster to a ui.Image cached by content hash, so decodedSnapshotFor can answer synchronously during the frame loop.
override
probeClip(MediaSource source) Future<ClipMetadata>
Probes clip source for 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