Composition: clarify javadoc to setTransmuxAudio\Video

Document that assoicated effects are ignored if these setters are set

PiperOrigin-RevId: 613518167
This commit is contained in:
tofunmi 2024-03-07 02:55:30 -08:00 committed by Copybara-Service
parent afacf2cdb7
commit 5b7774fcaf

View File

@ -173,7 +173,8 @@ public final class Composition {
* the audio tracks are transcoded by default. They are all transmuxed if {@code transmuxAudio}
* is {@code true}. Transmuxed tracks must be compatible (typically, all the {@link MediaItem}
* instances containing the track to transmux are concatenated in a single {@link
* EditedMediaItemSequence} and have the same sample format for that track).
* EditedMediaItemSequence} and have the same sample format for that track). Any transcoding
* effects requested will be ignored.
*
* <p>Requesting audio transmuxing and {@linkplain #experimentalSetForceAudioTrack(boolean)
* forcing an audio track} are not allowed together because generating silence requires
@ -200,7 +201,8 @@ public final class Composition {
* the video tracks are transcoded by default. They are all transmuxed if {@code transmuxVideo}
* is {@code true}. Transmuxed tracks must be compatible (typically, all the {@link MediaItem}
* instances containing the track to transmux are concatenated in a single {@link
* EditedMediaItemSequence} and have the same sample format for that track).
* EditedMediaItemSequence} and have the same sample format for that track). Any transcoding
* effects requested will be ignored.
*
* @param transmuxVideo Whether to transmux the video tracks.
* @return This builder.