SequenceBuilder

A DSL builder for creating a EditedMediaItem sequence.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun files(files: List<File>, configure: MediaItem.Builder.(File) -> Unit = {}, block: EditedMediaItem.Builder.(File) -> Unit = {}): SequenceBuilder

Create a list of EditedMediaItem from a list of Files and add to sequence.

Link copied to clipboard
fun image(uri: Uri, durationMs: Long, frameRate: Int = 30, block: EffectsBuilder.() -> Unit = {}): SequenceBuilder
fun image(file: File, durationMs: Long, frameRate: Int = 30, block: EffectsBuilder.() -> Unit = {}): SequenceBuilder

Convenience function for adding an image to the sequence.

Link copied to clipboard
fun item(mediaItem: MediaItem, block: EditedMediaItem.Builder.() -> Unit = {}): SequenceBuilder

Add a single item to the sequence from a MediaItem.

fun item(item: Uri, configure: MediaItem.Builder.() -> Unit = {}, block: EditedMediaItem.Builder.() -> Unit = {}): SequenceBuilder

Add a single item to the sequence from a Uri.

fun item(item: File, configure: MediaItem.Builder.() -> Unit = {}, block: EditedMediaItem.Builder.() -> Unit = {}): SequenceBuilder

Add a single item to the sequence from a File.

Link copied to clipboard
fun items(uris: List<Uri>, configure: MediaItem.Builder.(Uri) -> Unit = {}, block: EditedMediaItem.Builder.(Uri) -> Unit = {}): SequenceBuilder

Create a list of EditedMediaItem from a list of Uris and add to sequence.

fun <T> items(items: List<T>, selector: (T) -> Uri, configure: MediaItem.Builder.(T) -> Unit = {}, block: EditedMediaItem.Builder.(T) -> Unit = {}): SequenceBuilder

Create a list of EditedMediaItem from a list of items of type T and add to sequence.

Link copied to clipboard

Create a list of EditedMediaItem from a list of MediaItems and add to sequence.