Document MergingMediaSource tag contract

Issue: androidx/media#883

#minor-release

PiperOrigin-RevId: 613970048
(cherry picked from commit eb6f607717ce930036f445511414ef21fea5e174)
This commit is contained in:
tonihei 2024-03-08 10:11:55 -08:00 committed by SheenaChhabra
parent 4db96acee6
commit a72a23266b

View File

@ -44,6 +44,11 @@ import java.util.Map;
* Merges multiple {@link MediaSource}s.
*
* <p>The {@link Timeline}s of the sources being merged must have the same number of periods.
*
* <p>The values of {@link androidx.media3.common.TrackGroup#id} and {@link
* androidx.media3.common.Format#id} are modified to start with {@code i:}, where {@code i} is the
* 0-based index of the {@link MediaSource} passed to the constructor that created this {@link
* androidx.media3.common.TrackGroup} or {@link androidx.media3.common.Format}.
*/
@UnstableApi
public final class MergingMediaSource extends CompositeMediaSource<Integer> {