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 allFormat
s in the givenTrackGroup
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FakeAdaptiveDataSet.Factory
Factory forFakeAdaptiveDataSet
s.static class
FakeAdaptiveDataSet.Iterator
MediaChunkIterator
for 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 int
getChunkCount()
long
getChunkDuration(int chunkIndex)
int
getChunkIndexByPosition(long positionUs)
long
getStartTime(int chunkIndex)
String
getUri(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)
-
-