/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | MaskingMediaPeriod.java | 53 @Nullable private MediaPeriod mediaPeriod; field in MaskingMediaPeriod 117 mediaPeriod = mediaSource.createPeriod(id, allocator, preparePositionUs); in createPeriod() 119 mediaPeriod.prepare(this, preparePositionUs); in createPeriod() 127 if (mediaPeriod != null) { in releasePeriod() 128 mediaSource.releasePeriod(mediaPeriod); in releasePeriod() 135 if (mediaPeriod != null) { in prepare() 136 mediaPeriod.prepare(this, getPreparePositionWithOverride(this.preparePositionUs)); in prepare() 143 if (mediaPeriod != null) { in maybeThrowPrepareError() 144 mediaPeriod.maybeThrowPrepareError(); in maybeThrowPrepareError() 161 return castNonNull(mediaPeriod).getTrackGroups(); in getTrackGroups() [all …]
|
D | ClippingMediaPeriod.java | 40 public final MediaPeriod mediaPeriod; field in ClippingMediaPeriod 63 MediaPeriod mediaPeriod, boolean enableInitialDiscontinuity, long startUs, long endUs) { in ClippingMediaPeriod() argument 64 this.mediaPeriod = mediaPeriod; in ClippingMediaPeriod() 86 mediaPeriod.prepare(this, positionUs); in prepare() 91 mediaPeriod.maybeThrowPrepareError(); in maybeThrowPrepareError() 96 return mediaPeriod.getTrackGroups(); in getTrackGroups() 113 mediaPeriod.selectTracks( in selectTracks() 138 mediaPeriod.discardBuffer(positionUs, toKeyframe); in discardBuffer() 143 mediaPeriod.reevaluateBuffer(positionUs); in reevaluateBuffer() 155 long discontinuityUs = mediaPeriod.readDiscontinuity(); in readDiscontinuity() [all …]
|
D | MergingMediaPeriod.java | 74 ? ((TimeOffsetMediaPeriod) periods[index]).mediaPeriod in getChildPeriod() 288 private final MediaPeriod mediaPeriod; field in MergingMediaPeriod.TimeOffsetMediaPeriod 293 public TimeOffsetMediaPeriod(MediaPeriod mediaPeriod, long timeOffsetUs) { in TimeOffsetMediaPeriod() argument 294 this.mediaPeriod = mediaPeriod; in TimeOffsetMediaPeriod() 301 mediaPeriod.prepare(/* callback= */ this, positionUs - timeOffsetUs); in prepare() 306 mediaPeriod.maybeThrowPrepareError(); in maybeThrowPrepareError() 311 return mediaPeriod.getTrackGroups(); in getTrackGroups() 316 return mediaPeriod.getStreamKeys(trackSelections); in getStreamKeys() 332 mediaPeriod.selectTracks( in selectTracks() 352 mediaPeriod.discardBuffer(positionUs - timeOffsetUs, toKeyframe); in discardBuffer() [all …]
|
D | LoopingMediaSource.java | 101 MediaPeriod mediaPeriod = in createPeriod() local 103 mediaPeriodToChildMediaPeriodId.put(mediaPeriod, childMediaPeriodId); in createPeriod() 104 return mediaPeriod; in createPeriod() 108 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 109 maskingMediaSource.releasePeriod(mediaPeriod); in releasePeriod() 111 MediaPeriodId childMediaPeriodId = mediaPeriodToChildMediaPeriodId.remove(mediaPeriod); in releasePeriod()
|
D | ClippingMediaSource.java | 209 ClippingMediaPeriod mediaPeriod = in createPeriod() local 215 mediaPeriods.add(mediaPeriod); in createPeriod() 216 return mediaPeriod; in createPeriod() 220 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 221 Assertions.checkState(mediaPeriods.remove(mediaPeriod)); in releasePeriod() 222 mediaSource.releasePeriod(((ClippingMediaPeriod) mediaPeriod).mediaPeriod); in releasePeriod()
|
D | MaskingMediaSource.java | 103 MaskingMediaPeriod mediaPeriod = in createPeriod() local 107 mediaPeriod.createPeriod(idInSource); in createPeriod() 112 unpreparedMaskingMediaPeriod = mediaPeriod; in createPeriod() 121 return mediaPeriod; in createPeriod() 125 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 126 ((MaskingMediaPeriod) mediaPeriod).releasePeriod(); in releasePeriod() 127 if (mediaPeriod == unpreparedMaskingMediaPeriod) { in releasePeriod()
|
D | ConcatenatingMediaSource.java | 479 MediaPeriod mediaPeriod = in createPeriod() local 481 mediaSourceByMediaPeriod.put(mediaPeriod, holder); in createPeriod() 483 return mediaPeriod; in createPeriod() 487 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 489 Assertions.checkNotNull(mediaSourceByMediaPeriod.remove(mediaPeriod)); in releasePeriod() 490 holder.mediaSource.releasePeriod(mediaPeriod); in releasePeriod() 491 holder.activeMediaPeriodIds.remove(((MaskingMediaPeriod) mediaPeriod).id); in releasePeriod() 1015 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument
|
D | MergingMediaSource.java | 162 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 163 MergingMediaPeriod mergingPeriod = (MergingMediaPeriod) mediaPeriod; in releasePeriod()
|
D | SingleSampleMediaSource.java | 334 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 335 ((SingleSampleMediaPeriod) mediaPeriod).release(); in releasePeriod()
|
D | ProgressiveMediaSource.java | 282 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 283 ((ProgressiveMediaPeriod) mediaPeriod).release(); in releasePeriod()
|
D | ExtractorMediaSource.java | 358 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 359 progressiveMediaSource.releasePeriod(mediaPeriod); in releasePeriod()
|
D | MediaPeriod.java | 51 void onPrepared(MediaPeriod mediaPeriod); in onPrepared() argument
|
D | MediaSource.java | 343 void releasePeriod(MediaPeriod mediaPeriod); in releasePeriod() argument
|
D | SilenceMediaSource.java | 124 public void releasePeriod(MediaPeriod mediaPeriod) {} in releasePeriod() argument
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | MediaPeriodHolder.java | 40 public final MediaPeriod mediaPeriod; field in MediaPeriodHolder 102 mediaPeriod = in MediaPeriodHolder() 145 && (!hasEnabledTracks || mediaPeriod.getBufferedPositionUs() == C.TIME_END_OF_SOURCE); in isFullyBuffered() 159 hasEnabledTracks ? mediaPeriod.getBufferedPositionUs() : C.TIME_END_OF_SOURCE; in getBufferedPositionUs() 168 return !prepared ? 0 : mediaPeriod.getNextLoadPositionUs(); in getNextLoadPositionUs() 180 trackGroups = mediaPeriod.getTrackGroups(); in handlePrepared() 203 mediaPeriod.reevaluateBuffer(toPeriodTime(rendererPositionUs)); in reevaluateBuffer() 216 mediaPeriod.continueLoading(loadingPeriodPositionUs); in continueLoading() 292 mediaPeriod.selectTracks( in applyTrackSelection() 319 releaseMediaPeriod(info.endPositionUs, mediaSourceList, mediaPeriod); in release() [all …]
|
D | MediaSourceList.java | 300 MediaPeriod mediaPeriod = in createPeriod() local 302 mediaSourceByMediaPeriod.put(mediaPeriod, holder); in createPeriod() 304 return mediaPeriod; in createPeriod() 312 public final void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 314 Assertions.checkNotNull(mediaSourceByMediaPeriod.remove(mediaPeriod)); in releasePeriod() 315 holder.mediaSource.releasePeriod(mediaPeriod); in releasePeriod() 316 holder.activeMediaPeriodIds.remove(((MaskingMediaPeriod) mediaPeriod).id); in releasePeriod()
|
D | ExoPlayerImplInternal.java | 747 ? playingPeriodHolder.mediaPeriod.readDiscontinuity() in updatePlaybackPositions() 802 playingPeriodHolder.mediaPeriod.discardBuffer( in doSomeWork() 832 playingPeriodHolder.mediaPeriod.maybeThrowPrepareError(); in doSomeWork() 972 playingPeriodHolder.mediaPeriod.getAdjustedSeekPositionUs( in seekToInternal() 1066 periodPositionUs = newPlayingPeriodHolder.mediaPeriod.seekToUs(periodPositionUs); in seekToPeriodPosition() 1067 newPlayingPeriodHolder.mediaPeriod.discardBuffer( in seekToPeriodPosition() 1694 mediaPeriodHolder.mediaPeriod.prepare(this, info.startPositionUs); 1751 && readingPeriodHolder.mediaPeriod.readDiscontinuity() != C.TIME_UNSET) { 1894 private void handlePeriodPrepared(MediaPeriod mediaPeriod) throws ExoPlaybackException { 1895 if (!queue.isLoading(mediaPeriod)) { [all …]
|
D | MediaPeriodQueue.java | 88 public boolean isLoading(MediaPeriod mediaPeriod) { in isLoading() argument 89 return loading != null && loading.mediaPeriod == mediaPeriod; in isLoading()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | MediaPeriodAsserts.java | 63 public static void assertTrackGroups(MediaPeriod mediaPeriod, TrackGroupArray expectedGroups) { in assertTrackGroups() argument 64 TrackGroupArray actualGroups = prepareAndGetTrackGroups(mediaPeriod); in assertTrackGroups() 98 MediaPeriod mediaPeriod = mediaPeriodFactory.createMediaPeriod(manifest, periodIndex); in assertGetStreamKeysAndManifestFilterIntegration() local 99 TrackGroupArray trackGroupArray = prepareAndGetTrackGroups(mediaPeriod); in assertGetStreamKeysAndManifestFilterIntegration() 151 List<StreamKey> streamKeys = mediaPeriod.getStreamKeys(testSelection); in assertGetStreamKeysAndManifestFilterIntegration() 200 private static TrackGroupArray prepareAndGetTrackGroups(MediaPeriod mediaPeriod) { in prepareAndGetTrackGroups() argument 206 mediaPeriod.prepare( in prepareAndGetTrackGroups() 209 public void onPrepared(MediaPeriod mediaPeriod) { in prepareAndGetTrackGroups() 210 trackGroupArray.set(mediaPeriod.getTrackGroups()); in prepareAndGetTrackGroups()
|
D | MediaSourceTestRunner.java | 174 public CountDownLatch preparePeriod(final MediaPeriod mediaPeriod, final long positionUs) { in preparePeriod() argument 179 mediaPeriod.prepare( in preparePeriod() 203 public void releasePeriod(final MediaPeriod mediaPeriod) { in releasePeriod() argument 204 runOnPlaybackThread(() -> mediaSource.releasePeriod(mediaPeriod)); in releasePeriod() 272 MediaPeriod mediaPeriod = createPeriod(mediaPeriodId); in assertPrepareAndReleasePeriod() local 274 CountDownLatch preparedLatch = preparePeriod(mediaPeriod, 0); in assertPrepareAndReleasePeriod() 290 releasePeriod(mediaPeriod); in assertPrepareAndReleasePeriod()
|
D | FakeMediaSource.java | 161 FakeMediaPeriod mediaPeriod = in createPeriod() local 163 activeMediaPeriods.add(mediaPeriod); in createPeriod() 165 return mediaPeriod; in createPeriod() 169 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 172 FakeMediaPeriod fakeMediaPeriod = (FakeMediaPeriod) mediaPeriod; in releasePeriod()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/ |
D | AdsMediaSource.java | 223 MaskingMediaPeriod mediaPeriod = in createPeriod() local 225 mediaPeriod.createPeriod(id); in createPeriod() 226 return mediaPeriod; in createPeriod() 231 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 232 MaskingMediaPeriod maskingMediaPeriod = (MaskingMediaPeriod) mediaPeriod; in releasePeriod() 423 MaskingMediaPeriod mediaPeriod = activeMediaPeriods.get(i); in handleSourceInfoRefresh() local 425 new MediaPeriodId(periodUid, mediaPeriod.id.windowSequenceNumber); in handleSourceInfoRefresh() 426 mediaPeriod.createPeriod(adSourceMediaPeriodId); in handleSourceInfoRefresh()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/ |
D | DownloadHelper.java | 1037 MediaPeriod mediaPeriod = (MediaPeriod) msg.obj; in handleMessage() local 1038 if (pendingMediaPeriods.contains(mediaPeriod)) { in handleMessage() 1039 mediaPeriod.continueLoading(/* positionUs= */ 0); in handleMessage() 1076 MediaPeriod mediaPeriod = in onSourceInfoRefreshed() local 1081 mediaPeriods[i] = mediaPeriod; in onSourceInfoRefreshed() 1082 pendingMediaPeriods.add(mediaPeriod); in onSourceInfoRefreshed() 1084 for (MediaPeriod mediaPeriod : mediaPeriods) { in onSourceInfoRefreshed() 1085 mediaPeriod.prepare(/* callback= */ this, /* positionUs= */ 0); in onSourceInfoRefreshed() 1092 public void onPrepared(MediaPeriod mediaPeriod) { in onPrepared() argument 1093 pendingMediaPeriods.remove(mediaPeriod); in onPrepared() [all …]
|
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/ |
D | DashMediaSource.java | 688 DashMediaPeriod mediaPeriod = in createPeriod() local 703 periodsById.put(mediaPeriod.id, mediaPeriod); in createPeriod() 704 return mediaPeriod; in createPeriod() 708 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 709 DashMediaPeriod dashMediaPeriod = (DashMediaPeriod) mediaPeriod; in releasePeriod()
|
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/ |
D | HlsMediaSource.java | 455 public void releasePeriod(MediaPeriod mediaPeriod) { in releasePeriod() argument 456 ((HlsMediaPeriod) mediaPeriod).release(); in releasePeriod()
|