EditedMediaItemSequence


@UnstableApi
public final class EditedMediaItemSequence


A sequence of EditedMediaItem instances.

EditedMediaItem instances in a sequence don't overlap in time.

Summary

Public fields

final ImmutableList<EditedMediaItem>

The EditedMediaItem instances in the sequence.

final boolean

Whether this sequence is looping.

Public constructors

Creates a non-looping instance.

EditedMediaItemSequence(
    EditedMediaItem editedMediaItem,
    EditedMediaItem[] editedMediaItems
)

Creates a non-looping instance.

EditedMediaItemSequence(
    List<EditedMediaItem> editedMediaItems,
    boolean isLooping
)

Creates an instance.

Public fields

editedMediaItems

public final ImmutableList<EditedMediaItemeditedMediaItems

The EditedMediaItem instances in the sequence.

This list must not be empty.

isLooping

public final boolean isLooping

Whether this sequence is looping.

This value indicates whether to loop over the EditedMediaItem instances in this sequence until all the non-looping sequences in the Composition have ended.

A looping sequence ends at the same time as the longest non-looping sequence. This means that the last exported EditedMediaItem from a looping sequence can be only partially exported.

Public constructors

EditedMediaItemSequence

public EditedMediaItemSequence(List<EditedMediaItem> editedMediaItems)

Creates a non-looping instance.

EditedMediaItemSequence

public EditedMediaItemSequence(
    EditedMediaItem editedMediaItem,
    EditedMediaItem[] editedMediaItems
)

Creates a non-looping instance.

EditedMediaItemSequence

public EditedMediaItemSequence(
    List<EditedMediaItem> editedMediaItems,
    boolean isLooping
)

Creates an instance.

Parameters
List<EditedMediaItem> editedMediaItems

The editedMediaItems.

boolean isLooping

Whether the sequence is looping.