Composition Builder
interface CompositionBuilder
Properties
Link copied to clipboard
Sets whether the output file should always contain an audio track.
Link copied to clipboard
Sets the Composition.HdrMode for HDR video input.
Link copied to clipboard
Sets whether to transmux the media items' audio tracks.
Link copied to clipboard
Sets whether to transmux the media items' video tracks.
Link copied to clipboard
Sets the VideoCompositorSettings to apply to the Composition.
Functions
Link copied to clipboard
Adds a EditedMediaItemSequence to the Composition.
open fun add(mediaItem: MediaItem, isLooping: Boolean = false, block: EditedMediaItem.Builder.() -> Unit = {}): CompositionBuilder
open fun add(uri: Uri, isLooping: Boolean = false, configure: MediaItem.Builder.() -> Unit = {}, block: EditedMediaItem.Builder.() -> Unit = {}): CompositionBuilder
open fun add(file: File, isLooping: Boolean = false, configure: MediaItem.Builder.() -> Unit = {}, block: EditedMediaItem.Builder.() -> Unit = {}): CompositionBuilder
Add a single item EditedMediaItemSequence to the Composition.
Link copied to clipboard
Build the Composition.
Link copied to clipboard
Add Effects to the entire Composition.
Link copied to clipboard
abstract fun sequenceOf(isLooping: Boolean = false, block: SequenceBuilder.() -> Unit): CompositionBuilder
Build a EditedMediaItemSequence from a block and add it to the Composition
Link copied to clipboard
Add Effects to the entire Composition.