add

Adds a EditedMediaItemSequence to the Composition.

Parameters

sequence

open fun add(uri: Uri, isLooping: Boolean = false, configure: MediaItem.Builder.() -> Unit = {}, block: EditedMediaItem.Builder.() -> Unit = {}): CompositionBuilder

Add a single item EditedMediaItemSequence to the Composition.

Parameters

uri

The Uri of the item to add.

isLooping

Whether the item should loop.

configure

A block to configure and build the MediaItem.

block

A block to configure and build the EditedMediaItem.


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.

Parameters

file

The File of the item to add.

isLooping

Whether the item should loop.

configure

A block to configure and build the MediaItem.

block

A block to configure and build the EditedMediaItem.


open fun add(mediaItem: MediaItem, isLooping: Boolean = false, block: EditedMediaItem.Builder.() -> Unit = {}): CompositionBuilder

Add a single item EditedMediaItemSequence to the Composition.

Parameters

mediaItem

The MediaItem to add.

isLooping

Whether the item should loop.

block

A block to configure and build the EditedMediaItem.


abstract fun add(editedMediaItem: EditedMediaItem, isLooping: Boolean = false): CompositionBuilder

Add a single item EditedMediaItemSequence to the Composition.

Parameters

editedMediaItem

The EditedMediaItem to add.

isLooping

Whether the item should loop.