ClipBuilder

Builds one Clip.

Constructors

Link copied to clipboard
constructor(source: MediaSource)

Functions

Link copied to clipboard

Adds already-built clip effects.

Link copied to clipboard

Sets what happens to this clip's audio.

Link copied to clipboard
fun build(): Clip

Freezes what has been described.

Link copied to clipboard

Adds effects that apply to this clip only, before any track or composition effect.

Link copied to clipboard
fun fadeIn(duration: Duration): ClipBuilder

Ramps this clip's audio up from silence over duration from its first kept sample.

Link copied to clipboard
fun fadeOut(duration: Duration): ClipBuilder

Ramps this clip's audio down to silence over the duration before its last kept sample.

Link copied to clipboard

Lets the cut move back up to duration to reach a sync sample, so a trimmed export can copy its streams rather than re-encode them.

Link copied to clipboard
fun speed(value: Double): ClipBuilder

Plays the trim at value, where 2.0 runs it in half the time and 0.5 in twice the time.

Link copied to clipboard

Keeps only range of the source.

Keeps only range of the source, treating its end as exclusive.

fun trim(start: Duration, endExclusive: Duration): ClipBuilder

Keeps only [start, endExclusive) of the source.