Update experimentalSetForceAudioTrack Javadoc to throw

This is consistent with the code behaviour.

PiperOrigin-RevId: 512073465
This commit is contained in:
kimvde 2023-02-24 16:09:52 +00:00 committed by tonihei
parent d1f3b81a76
commit 0134d7b048

View File

@ -80,9 +80,12 @@ public final class Composition {
* <ul> * <ul>
* <li>If {@code false}: * <li>If {@code false}:
* <ul> * <ul>
* <li>If the {@link Composition} export doesn't produce any audio at timestamp 0, the * <li>If the {@link Composition} export doesn't produce any audio at timestamp 0, but
* output won't contain any audio, and audio tracks from the {@link MediaItem} * produces audio later on, the export is {@linkplain
* instances in the {@link Composition} will be ignored. * Transformer.Listener#onError(Composition, ExportResult, ExportException)
* aborted}.
* <li>If the {@link Composition} doesn't produce any audio during the entire export,
* the output won't contain any audio.
* <li>If the {@link Composition} export produces audio at timestamp 0, the output will * <li>If the {@link Composition} export produces audio at timestamp 0, the output will
* contain an audio track. * contain an audio track.
* </ul> * </ul>