CompositionBuilder

Properties

Link copied to clipboard
abstract var forceAudioTrack: Boolean

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
abstract var transmuxAudio: Boolean

Sets whether to transmux the media items' audio tracks.

Link copied to clipboard
abstract var transmuxVideo: Boolean

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
abstract fun add(editedMediaItem: EditedMediaItem, isLooping: Boolean = false): CompositionBuilder
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
abstract fun build(): Composition

Build the Composition.

Link copied to clipboard
abstract fun effects(block: EffectsBuilder.() -> Unit): CompositionBuilder

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
abstract fun setEffects(block: EffectsBuilder.() -> Unit): CompositionBuilder

Add Effects to the entire Composition.