mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Set MediaPeriodId in ProgressiveMediaPeriodTest
PiperOrigin-RevId: 319784140
This commit is contained in:
parent
040ff47e82
commit
39144a7e76
1 changed files with 6 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ import com.google.android.exoplayer2.C;
|
||||||
import com.google.android.exoplayer2.drm.DrmSessionManager;
|
import com.google.android.exoplayer2.drm.DrmSessionManager;
|
||||||
import com.google.android.exoplayer2.extractor.Extractor;
|
import com.google.android.exoplayer2.extractor.Extractor;
|
||||||
import com.google.android.exoplayer2.extractor.mp4.Mp4Extractor;
|
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.AssetDataSource;
|
||||||
import com.google.android.exoplayer2.upstream.DefaultAllocator;
|
import com.google.android.exoplayer2.upstream.DefaultAllocator;
|
||||||
import com.google.android.exoplayer2.upstream.DefaultLoadErrorHandlingPolicy;
|
import com.google.android.exoplayer2.upstream.DefaultLoadErrorHandlingPolicy;
|
||||||
|
|
@ -50,7 +51,11 @@ public final class ProgressiveMediaPeriodTest {
|
||||||
() -> new Extractor[] {new Mp4Extractor()},
|
() -> new Extractor[] {new Mp4Extractor()},
|
||||||
DrmSessionManager.DUMMY,
|
DrmSessionManager.DUMMY,
|
||||||
new DefaultLoadErrorHandlingPolicy(),
|
new DefaultLoadErrorHandlingPolicy(),
|
||||||
new MediaSourceEventListener.EventDispatcher(),
|
new MediaSourceEventListener.EventDispatcher()
|
||||||
|
.withParameters(
|
||||||
|
/* windowIndex= */ 0,
|
||||||
|
new MediaPeriodId(/* periodUid= */ new Object()),
|
||||||
|
/* mediaTimeOffsetMs= */ 0),
|
||||||
sourceInfoRefreshListener,
|
sourceInfoRefreshListener,
|
||||||
new DefaultAllocator(/* trimOnReset= */ true, C.DEFAULT_BUFFER_SEGMENT_SIZE),
|
new DefaultAllocator(/* trimOnReset= */ true, C.DEFAULT_BUFFER_SEGMENT_SIZE),
|
||||||
/* customCacheKey= */ null,
|
/* customCacheKey= */ null,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue