WebClipDecoder class abstract interface

Decodes a video clip in the browser from its bytes — the WebCodecs seam the web MediaResolver probes and extracts clip frames through.

The desktop path probes with ffprobe and extracts with ffmpeg by file path; the browser has neither, so this works from the loaded bytes instead. The fluvie_web_encoder package provides the real implementation over the WebCodecs VideoDecoder; inject it (or a fake in tests) to render a Clip on web. With no decoder wired, a clip declared on web fails with a clear typed error instead of a blank frame.

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

extractFrames(Uint8List bytes, List<int> sourceFrames, {required int width, required int height}) Future<Map<int, RawFrame>>
Decodes the sourceFrames of bytes to width by height RGBA rasters, each a RawFrame keyed by its source-frame index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
probe(Uint8List bytes) Future<ClipMetadata>
Probes bytes for the clip's fps, frame count, and pixel dimensions.
toString() String
A string representation of this object.
inherited

Operators

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