mirror of
https://github.com/androidx/media.git
synced 2025-05-04 06:00:37 +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.Format;
|
||||||
import com.google.android.exoplayer2.FormatHolder;
|
import com.google.android.exoplayer2.FormatHolder;
|
||||||
import com.google.android.exoplayer2.decoder.DecoderInputBuffer;
|
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.source.MediaSourceEventListener.EventDispatcher;
|
||||||
import com.google.android.exoplayer2.testutil.FakeMediaPeriod;
|
import com.google.android.exoplayer2.testutil.FakeMediaPeriod;
|
||||||
import com.google.android.exoplayer2.trackselection.FixedTrackSelection;
|
import com.google.android.exoplayer2.trackselection.FixedTrackSelection;
|
||||||
@ -143,7 +144,12 @@ public final class MergingMediaPeriodTest {
|
|||||||
}
|
}
|
||||||
mediaPeriods[i] =
|
mediaPeriods[i] =
|
||||||
new FakeMediaPeriodWithSelectTracksPosition(
|
new FakeMediaPeriodWithSelectTracksPosition(
|
||||||
new TrackGroupArray(trackGroups), new EventDispatcher());
|
new TrackGroupArray(trackGroups),
|
||||||
|
new EventDispatcher()
|
||||||
|
.withParameters(
|
||||||
|
/* windowIndex= */ i,
|
||||||
|
new MediaPeriodId(/* periodUid= */ i),
|
||||||
|
/* mediaTimeOffsetMs= */ 0));
|
||||||
}
|
}
|
||||||
MergingMediaPeriod mergingMediaPeriod =
|
MergingMediaPeriod mergingMediaPeriod =
|
||||||
new MergingMediaPeriod(
|
new MergingMediaPeriod(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user