track

fun track(content: TrackContent = TrackContent.AudioAndVideo, block: TrackBuilder.() -> Unit): CompositionBuilder(source)

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

An audio-only track is mixed with the other tracks' audio. A track that carries video is refused at plan time unless it is the primary one.

Parameters

content

Which media streams this track contributes. A music bed is TrackContent.Audio.