Home
last modified time | relevance | path

Searched refs:MediaPeriod (Results 1 – 25 of 42) sorted by relevance

12

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DMergingMediaPeriod.java37 /* package */ final class MergingMediaPeriod implements MediaPeriod, MediaPeriod.Callback {
39 private final MediaPeriod[] periods;
42 private final ArrayList<MediaPeriod> childrenPendingPreparation;
46 private MediaPeriod[] enabledPeriods;
52 MediaPeriod... periods) { in MergingMediaPeriod()
59 enabledPeriods = new MediaPeriod[0]; in MergingMediaPeriod()
72 public MediaPeriod getChildPeriod(int index) { in getChildPeriod()
82 for (MediaPeriod period : periods) { in prepare()
89 for (MediaPeriod period : periods) { in maybeThrowPrepareError()
128 ArrayList<MediaPeriod> enabledPeriodsList = new ArrayList<>(periods.length); in selectTracks()
[all …]
DClippingMediaPeriod.java35 public final class ClippingMediaPeriod implements MediaPeriod, MediaPeriod.Callback {
40 public final MediaPeriod mediaPeriod;
42 @Nullable private MediaPeriod.Callback callback;
63 MediaPeriod mediaPeriod, boolean enableInitialDiscontinuity, long startUs, long endUs) { in ClippingMediaPeriod()
84 public void prepare(MediaPeriod.Callback callback, long positionUs) { in prepare()
222 public void onPrepared(MediaPeriod mediaPeriod) { in onPrepared()
227 public void onContinueLoadingRequested(MediaPeriod source) { in onContinueLoadingRequested()
DMaskingMediaPeriod.java35 public final class MaskingMediaPeriod implements MediaPeriod, MediaPeriod.Callback {
53 @Nullable private MediaPeriod mediaPeriod;
225 public void onContinueLoadingRequested(MediaPeriod source) { in onContinueLoadingRequested()
232 public void onPrepared(MediaPeriod mediaPeriod) { in onPrepared()
DMediaPeriod.java35 public interface MediaPeriod extends SequenceableLoader { interface
40 interface Callback extends SequenceableLoader.Callback<MediaPeriod> {
51 void onPrepared(MediaPeriod mediaPeriod); in onPrepared()
DMergingMediaSource.java147 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
148 MediaPeriod[] periods = new MediaPeriod[mediaSources.length]; in createPeriod()
162 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
DLoopingMediaSource.java42 private final Map<MediaPeriod, MediaPeriodId> mediaPeriodToChildMediaPeriodId;
94 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
101 MediaPeriod mediaPeriod = in createPeriod()
108 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
DSilenceMediaSource.java119 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
124 public void releasePeriod(MediaPeriod mediaPeriod) {} in releasePeriod()
129 private static final class SilenceMediaPeriod implements MediaPeriod {
DMediaSource.java334 MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs); in createPeriod()
343 void releasePeriod(MediaPeriod mediaPeriod); in releasePeriod()
DConcatenatingMediaSource.java70 private final Map<MediaPeriod, MediaSourceHolder> mediaSourceByMediaPeriod;
467 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
479 MediaPeriod mediaPeriod = in createPeriod()
487 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
1010 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
1015 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
DSingleSampleMediaSource.java321 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
334 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
DProgressiveMediaSource.java263 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
282 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
DExtractorMediaSource.java353 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
358 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
DClippingMediaSource.java208 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
220 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DMediaPeriodAsserts.java25 import com.google.android.exoplayer2.source.MediaPeriod;
26 import com.google.android.exoplayer2.source.MediaPeriod.Callback;
52 MediaPeriod createMediaPeriod(T manifest, int periodIndex); in createMediaPeriod()
63 public static void assertTrackGroups(MediaPeriod mediaPeriod, TrackGroupArray expectedGroups) { in assertTrackGroups()
98 MediaPeriod mediaPeriod = mediaPeriodFactory.createMediaPeriod(manifest, periodIndex); in assertGetStreamKeysAndManifestFilterIntegration()
158 MediaPeriod filteredMediaPeriod = in assertGetStreamKeysAndManifestFilterIntegration()
200 private static TrackGroupArray prepareAndGetTrackGroups(MediaPeriod mediaPeriod) { in prepareAndGetTrackGroups()
209 public void onPrepared(MediaPeriod mediaPeriod) { in prepareAndGetTrackGroups()
215 public void onContinueLoadingRequested(MediaPeriod source) { in prepareAndGetTrackGroups()
DMediaSourceTestRunner.java30 import com.google.android.exoplayer2.source.MediaPeriod;
147 public MediaPeriod createPeriod(final MediaPeriodId periodId) { in createPeriod()
158 public MediaPeriod createPeriod(final MediaPeriodId periodId, long startPositionUs) { in createPeriod()
159 final MediaPeriod[] holder = new MediaPeriod[1]; in createPeriod()
174 public CountDownLatch preparePeriod(final MediaPeriod mediaPeriod, final long positionUs) { in preparePeriod()
180 new MediaPeriod.Callback() { in preparePeriod()
182 public void onPrepared(MediaPeriod mediaPeriod1) { in preparePeriod()
187 public void onContinueLoadingRequested(MediaPeriod source) { in preparePeriod()
203 public void releasePeriod(final MediaPeriod mediaPeriod) { in releasePeriod()
272 MediaPeriod mediaPeriod = createPeriod(mediaPeriodId); in assertPrepareAndReleasePeriod()
[all …]
DFakeMediaSource.java32 import com.google.android.exoplayer2.source.MediaPeriod;
153 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
169 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
DFakeMediaPeriod.java27 import com.google.android.exoplayer2.source.MediaPeriod;
46 public class FakeMediaPeriod implements MediaPeriod {
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DMergingMediaPeriodTest.java136 MediaPeriod[] mediaPeriods = new MediaPeriod[definitions.length]; in prepareMergingPeriod()
154 new MediaPeriod.Callback() { in prepareMergingPeriod()
156 public void onPrepared(MediaPeriod mediaPeriod) { in prepareMergingPeriod()
161 public void onContinueLoadingRequested(MediaPeriod source) { in prepareMergingPeriod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadHelper.java33 import com.google.android.exoplayer2.source.MediaPeriod;
965 implements MediaSourceCaller, MediaPeriod.Callback, Handler.Callback {
978 private final ArrayList<MediaPeriod> pendingMediaPeriods;
984 public MediaPeriod @MonotonicNonNull [] mediaPeriods;
1037 MediaPeriod mediaPeriod = (MediaPeriod) msg.obj; in handleMessage()
1044 for (MediaPeriod period : mediaPeriods) { in handleMessage()
1074 mediaPeriods = new MediaPeriod[timeline.getPeriodCount()]; in onSourceInfoRefreshed()
1076 MediaPeriod mediaPeriod = in onSourceInfoRefreshed()
1084 for (MediaPeriod mediaPeriod : mediaPeriods) { in onSourceInfoRefreshed()
1092 public void onPrepared(MediaPeriod mediaPeriod) { in onPrepared()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DMediaPeriodHolder.java21 import com.google.android.exoplayer2.source.MediaPeriod;
40 public final MediaPeriod mediaPeriod;
414 private static MediaPeriod createMediaPeriod( in createMediaPeriod()
420 MediaPeriod mediaPeriod = mediaSourceList.createPeriod(id, allocator, startPositionUs); in createMediaPeriod()
431 long endPositionUs, MediaSourceList mediaSourceList, MediaPeriod mediaPeriod) { in releaseMediaPeriod()
DMediaSourceList.java26 import com.google.android.exoplayer2.source.MediaPeriod;
69 private final Map<MediaPeriod, MediaSourceHolder> mediaSourceByMediaPeriod;
292 public MediaPeriod createPeriod( in createPeriod()
300 MediaPeriod mediaPeriod = in createPeriod()
312 public final void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
DMediaPeriodInfo.java19 import com.google.android.exoplayer2.source.MediaPeriod;
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/ads/
DAdsMediaSourceTest.java32 import com.google.android.exoplayer2.source.MediaPeriod;
190 MediaPeriod prerollAdMediaPeriod = in releasePeriod_releasesChildMediaPeriodsAndSources()
201 MediaPeriod contentMediaPeriod = in releasePeriod_releasesChildMediaPeriodsAndSources()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DAdsMediaSource.java30 import com.google.android.exoplayer2.source.MediaPeriod;
200 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
231 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()
403 public MediaPeriod createMediaPeriod( in createMediaPeriod()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DHlsMediaSource.java34 import com.google.android.exoplayer2.source.MediaPeriod;
437 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
455 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod()

12