PreviewRenderer class abstract final

Renders the editor's composed preview incrementally: each clip becomes a cached segment, and the segments are joined without re-encoding the video.

Compared with rendering the whole project for every edit, a change to one clip only costs that clip, and changes that don't touch clips (music volume, a timed effect) only cost the quick join.

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

render({required List<VideoEditorClip> clips, required List<VideoEditorAudioTrack> audioTracks, required List<VideoEffectOverlay> effectOverlays, required VideoAspectRatio aspectRatio, required PreviewSegmentCache cache, RenderProgressCallback? onProgress, bool isStale()?}) → Future<String>
Renders the preview and returns the path of a preview_*.mp4 file.
segmentKey(List<VideoEditorClip> clips, int i, {required Size canvas, required bool hardware}) → String
Everything that changes how clip i looks or sounds in the preview, as a stable string. The original file path is used (not the proxy), so a proxy finishing later doesn't invalidate segments.

Constants

fps → const int