Class FakeAdaptiveDataSet
- java.lang.Object
-
- com.google.android.exoplayer2.testutil.FakeDataSet
-
- com.google.android.exoplayer2.testutil.FakeAdaptiveDataSet
-
public final class FakeAdaptiveDataSet extends FakeDataSet
Fake data set emulating the data of an adaptive media source. It provides chunk data for allFormats in the givenTrackGroup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFakeAdaptiveDataSet.FactoryFactory forFakeAdaptiveDataSets.static classFakeAdaptiveDataSet.IteratorMediaChunkIteratorfor the chunks defined by a fake adaptive data set.-
Nested classes/interfaces inherited from class com.google.android.exoplayer2.testutil.FakeDataSet
FakeDataSet.FakeData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChunkCount()longgetChunkDuration(int chunkIndex)intgetChunkIndexByPosition(long positionUs)longgetStartTime(int chunkIndex)StringgetUri(int trackIndex)-
Methods inherited from class com.google.android.exoplayer2.testutil.FakeDataSet
getAllData, getData, getData, newData, newData, newDefaultData, setData, setData, setRandomData, setRandomData
-
-
-
-
Method Detail
-
getChunkCount
public int getChunkCount()
-
getUri
public String getUri(int trackIndex)
-
getChunkDuration
public long getChunkDuration(int chunkIndex)
-
getStartTime
public long getStartTime(int chunkIndex)
-
getChunkIndexByPosition
public int getChunkIndexByPosition(long positionUs)
-
-