CompositionBuilder

Builds an EditComposition.

clip appends to the primary track, which is the only track most edits have, so a single-track composition never names one. track adds a layer that plays alongside it.

Each lambda-taking method has a non-lambda counterpart, addClip, addTrack and addEffects, for callers that cannot use a receiver lambda.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Appends an already-built clip to the primary track.

Link copied to clipboard

Adds already-built composition-level effects.

Link copied to clipboard

Adds an already-built track alongside the primary one.

Link copied to clipboard

Sets what happens to the composition's audio once every track has been mixed.

Link copied to clipboard

Freezes what has been described.

Link copied to clipboard
fun clip(source: MediaSource, block: ClipBuilder.() -> Unit = {}): CompositionBuilder

Appends a clip to the primary track, reading from source and configured by block.

Link copied to clipboard

Adds effects that apply to the composited output, after every track's own.

Link copied to clipboard

Sets what fills the frame where no clip's pixels land.

Link copied to clipboard
fun image(image: ImageSource, duration: Duration, block: ClipBuilder.() -> Unit = {}): CompositionBuilder

Appends a still image to the primary track, held for duration and configured by block.

Link copied to clipboard
fun track(content: TrackContent = TrackContent.AudioAndVideo, block: TrackBuilder.() -> Unit): CompositionBuilder

Adds a track that plays alongside the primary one, configured by block.