Set MediaPeriodId in ProgressiveMediaPeriodTest

PiperOrigin-RevId: 319784140
This commit is contained in:
ibaker 2020-07-06 16:30:54 +01:00 committed by Ian Baker
parent 040ff47e82
commit 39144a7e76

View file

@ -25,6 +25,7 @@ import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.drm.DrmSessionManager;
import com.google.android.exoplayer2.extractor.Extractor;
import com.google.android.exoplayer2.extractor.mp4.Mp4Extractor;
import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
import com.google.android.exoplayer2.upstream.AssetDataSource;
import com.google.android.exoplayer2.upstream.DefaultAllocator;
import com.google.android.exoplayer2.upstream.DefaultLoadErrorHandlingPolicy;
@ -50,7 +51,11 @@ public final class ProgressiveMediaPeriodTest {
() -> new Extractor[] {new Mp4Extractor()},
DrmSessionManager.DUMMY,
new DefaultLoadErrorHandlingPolicy(),
new MediaSourceEventListener.EventDispatcher(),
new MediaSourceEventListener.EventDispatcher()
.withParameters(
/* windowIndex= */ 0,
new MediaPeriodId(/* periodUid= */ new Object()),
/* mediaTimeOffsetMs= */ 0),
sourceInfoRefreshListener,
new DefaultAllocator(/* trimOnReset= */ true, C.DEFAULT_BUFFER_SEGMENT_SIZE),
/* customCacheKey= */ null,