LayeredComposition class

Composition that mimics the kind of video layout achieved in programs like Premier and After Effects.

A LayeredComposition is comprised of 1 or more Layers. Layers are stacked on top of one another in the z-index of the screen.

Each Layer may contain any number of LayerSpans that take up time within the Layer. LayerSpans may not overlap each other, but empty space is permitted between LayerSpans, allowing for easy and precise positioning of a given clip in time. Whatever empty space exists is in a Layer is automatically filled with TransparentCompositions because FFMPEG requires that all time be filled.

Implemented types

Constructors

LayeredComposition({required List<Layer> layers})

Properties

hashCode int
The hash code for this object.
no setterinherited
layers List<Layer>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(FfmpegBuilder builder, CompositionSettings settings) Future<FfmpegStream>
Adds this composition to the composition tree in the given builder.
override
computeIntrinsicDuration() Future<Duration>
Computes the natural, or intrinsic, duration of this composition.
override
computeIntrinsicSize() Future<VideoSize>
Computes the natural, or intrinsic, size of this composition.
override
createDiagnosticsNode() DiagnosticsNode
override
hasAudio() Future<bool>
Whether this composition includes any audio streams.
override
hasVideo() Future<bool>
Whether this composition includes any video frames.
override
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