EditedMediaItemSequence
@UnstableApi
class EditedMediaItemSequence
A sequence of EditedMediaItem instances.
EditedMediaItem instances in a sequence don't overlap in time.
Summary
Nested types |
|---|
|
A builder for instances of |
Public functions |
|
|---|---|
EditedMediaItemSequence.Builder! |
Returns a |
String! |
toString() |
java-static EditedMediaItemSequence! |
withAudioAndVideoFrom(editedMediaItems: (Mutable)List<EditedMediaItem!>!)Creates a sequence with both audio and video from a list of |
java-static EditedMediaItemSequence! |
withAudioFrom(editedMediaItems: (Mutable)List<EditedMediaItem!>!)Creates an audio-only sequence from a list of |
java-static EditedMediaItemSequence! |
withVideoFrom(editedMediaItems: (Mutable)List<EditedMediaItem!>!)Creates an video-only sequence from a list of |
Public properties |
|
|---|---|
ImmutableList<EditedMediaItem!>! |
The |
Boolean |
This property is deprecated. Use |
Boolean |
This property is deprecated. Use |
Boolean |
Whether this sequence is looping. |
ImmutableSet<@C.TrackType Int!>! |
The track types enabled for this sequence. |
Public functions
buildUpon
fun buildUpon(): EditedMediaItemSequence.Builder!
Returns a Builder initialized with the values of this instance.
withAudioAndVideoFrom
java-static fun withAudioAndVideoFrom(editedMediaItems: (Mutable)List<EditedMediaItem!>!): EditedMediaItemSequence!
Creates a sequence with both audio and video from a list of EditedMediaItems.
This is equivalent to using the Builder and setting the track types to include TRACK_TYPE_AUDIO and TRACK_TYPE_VIDEO. The sequence will produce both audio and video output.
| Parameters | |
|---|---|
editedMediaItems: (Mutable)List<EditedMediaItem!>! |
The list of |
| Returns | |
|---|---|
EditedMediaItemSequence! |
A new audio and video |
withAudioFrom
java-static fun withAudioFrom(editedMediaItems: (Mutable)List<EditedMediaItem!>!): EditedMediaItemSequence!
Creates an audio-only sequence from a list of EditedMediaItems.
This is equivalent to using the Builder and setting the track types to only include TRACK_TYPE_AUDIO. The sequence will only produce an audio output.
| Parameters | |
|---|---|
editedMediaItems: (Mutable)List<EditedMediaItem!>! |
The list of |
| Returns | |
|---|---|
EditedMediaItemSequence! |
A new audio-only |
withVideoFrom
java-static fun withVideoFrom(editedMediaItems: (Mutable)List<EditedMediaItem!>!): EditedMediaItemSequence!
Creates an video-only sequence from a list of EditedMediaItems.
This is equivalent to using the Builder and setting the track types to only include TRACK_TYPE_VIDEO. The sequence will only produce a video output.
| Parameters | |
|---|---|
editedMediaItems: (Mutable)List<EditedMediaItem!>! |
The list of |
| Returns | |
|---|---|
EditedMediaItemSequence! |
A new video-only |
Public properties
editedMediaItems
val editedMediaItems: ImmutableList<EditedMediaItem!>!
The EditedMediaItem instances in the sequence.
This list must not be empty.
isLooping
val isLooping: Boolean
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.
trackTypes
val trackTypes: ImmutableSet<@C.TrackType Int!>!
The track types enabled for this sequence.
This set, containing TRACK_TYPE_AUDIO and/or TRACK_TYPE_VIDEO, determines which tracks will be included in the sequence's output. For example, a set containing only TRACK_TYPE_AUDIO will result in an audio-only output.