Back to Exoplayer

Composition (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/transformer/Composition.html

latest4.5 KB
Original Source

Package com.google.android.exoplayer2.transformer

Class Composition


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classCompositionextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

A composition of MediaItem instances, with transformations to apply to them.

The MediaItem instances can be concatenated or mixed. Effects can be applied to individual MediaItem instances, as well as to the composition.

Nested Class Summary

Nested Classes | Modifier and Type | Class | Description | | --- | --- | --- | | static class | Composition.Builder | Deprecated.

A builder for Composition instances. |

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | Effects | effects | Deprecated.

The Effects to apply to the composition. | | boolean | forceAudioTrack | Deprecated.

Whether the output file should always contain an audio track. | | ImmutableList<EditedMediaItemSequence> | sequences | Deprecated.

The EditedMediaItemSequence instances to compose. | | boolean | transmuxAudio | Deprecated.

Whether to transmux the media items' audio tracks. | | boolean | transmuxVideo | Deprecated.

Whether to transmux the media items' video tracks. |

Method Summary

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

sequences

public final[ImmutableList](https://guava.dev/releases/31.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true "class or interface in com.google.common.collect")<[EditedMediaItemSequence](EditedMediaItemSequence.html "class in com.google.android.exoplayer2.transformer")> sequences

Deprecated.

The EditedMediaItemSequence instances to compose.

For more information, see Builder(List).

- 

effects

public final[Effects](Effects.html "class in com.google.android.exoplayer2.transformer")effects

Deprecated.

The Effects to apply to the composition.

- 

forceAudioTrack

public final boolean forceAudioTrack

Deprecated.

Whether the output file should always contain an audio track.

For more information, see Composition.Builder.experimentalSetForceAudioTrack(boolean).

- 

transmuxAudio

public final boolean transmuxAudio

Deprecated.

Whether to transmux the media items' audio tracks.

For more information, see Composition.Builder.setTransmuxAudio(boolean).

- 

transmuxVideo

public final boolean transmuxVideo

Deprecated.

Whether to transmux the media items' video tracks.

For more information, see Composition.Builder.setTransmuxVideo(boolean).