mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Set MediaPeriodId in MergingMediaPeriodTest
PiperOrigin-RevId: 319399717
This commit is contained in:
parent
cf3fbdd19b
commit
31efd5387b
@ -22,6 +22,7 @@ import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.FormatHolder;
|
||||
import com.google.android.exoplayer2.decoder.DecoderInputBuffer;
|
||||
import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
|
||||
import com.google.android.exoplayer2.source.MediaSourceEventListener.EventDispatcher;
|
||||
import com.google.android.exoplayer2.testutil.FakeMediaPeriod;
|
||||
import com.google.android.exoplayer2.trackselection.FixedTrackSelection;
|
||||
@ -143,7 +144,12 @@ public final class MergingMediaPeriodTest {
|
||||
}
|
||||
mediaPeriods[i] =
|
||||
new FakeMediaPeriodWithSelectTracksPosition(
|
||||
new TrackGroupArray(trackGroups), new EventDispatcher());
|
||||
new TrackGroupArray(trackGroups),
|
||||
new EventDispatcher()
|
||||
.withParameters(
|
||||
/* windowIndex= */ i,
|
||||
new MediaPeriodId(/* periodUid= */ i),
|
||||
/* mediaTimeOffsetMs= */ 0));
|
||||
}
|
||||
MergingMediaPeriod mergingMediaPeriod =
|
||||
new MergingMediaPeriod(
|
||||
|
Loading…
x
Reference in New Issue
Block a user