docs/doc/reference/com/google/android/exoplayer2/transformer/Composition.html
Package com.google.android.exoplayer2.transformer
[@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 Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static class | Composition.Builder |
Deprecated.
A builder for Composition instances.
|
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. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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).
-
public final[Effects](Effects.html "class in com.google.android.exoplayer2.transformer")effects
Deprecated.
The Effects to apply to the composition.
-
public final boolean forceAudioTrack
Deprecated.
Whether the output file should always contain an audio track.
For more information, see Composition.Builder.experimentalSetForceAudioTrack(boolean).
-
public final boolean transmuxAudio
Deprecated.
Whether to transmux the media items' audio tracks.
For more information, see Composition.Builder.setTransmuxAudio(boolean).
-
public final boolean transmuxVideo
Deprecated.
Whether to transmux the media items' video tracks.
For more information, see Composition.Builder.setTransmuxVideo(boolean).