docs/doc/reference/com/google/android/exoplayer2/testutil/FakeExtractorOutput.html
Package com.google.android.exoplayer2.testutil
All Implemented Interfaces:ExtractorOutput, Dumper.Dumpable
public final classFakeExtractorOutputextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[ExtractorOutput](../extractor/ExtractorOutput.html "interface in com.google.android.exoplayer2.extractor"),[Dumper.Dumpable](Dumper.Dumpable.html "interface in com.google.android.exoplayer2.testutil")
A fake ExtractorOutput.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| int | numberOfTracks | |
| @MonotonicNonNull SeekMap | seekMap | |
| SparseArray<FakeTrackOutput> | trackOutputs | |
| boolean | tracksEnded | |
-
PLACEHOLDER
Constructors | Constructor | Description |
| --- | --- |
| FakeExtractorOutput() | |
| FakeExtractorOutput(FakeTrackOutput.Factory trackOutputFactory) | |
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | clearTrackOutputs() | |
| void | dump(Dumper dumper) |
Dumps the fields of the object using the dumper.
|
| void | endTracks() |
Called when all tracks have been identified, meaning no new trackId values will be passed to ExtractorOutput.track(int, int).
|
| void | seekMap(SeekMap seekMap) |
Called when a SeekMap has been extracted from the stream.
|
| FakeTrackOutput | track(int id, int type) |
Called by the Extractor to get the TrackOutput for a specific track.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public final[SparseArray](https://developer.android.com/reference/android/util/SparseArray.html "class or interface in android.util")<[FakeTrackOutput](FakeTrackOutput.html "class in com.google.android.exoplayer2.testutil")> trackOutputs
-
public int numberOfTracks
-
public boolean tracksEnded
-
public @MonotonicNonNull[SeekMap](../extractor/SeekMap.html "interface in com.google.android.exoplayer2.extractor")seekMap
-
public FakeExtractorOutput()
-
public FakeExtractorOutput([FakeTrackOutput.Factory](FakeTrackOutput.Factory.html "interface in com.google.android.exoplayer2.testutil")trackOutputFactory)
-
public[FakeTrackOutput](FakeTrackOutput.html "class in com.google.android.exoplayer2.testutil")track(int id,
int type)
Description copied from interface: ExtractorOutput
Called by the Extractor to get the TrackOutput for a specific track.
The same TrackOutput is returned if multiple calls are made with the same id.
Specified by:track in interface ExtractorOutputParameters:id - A track identifier.type - The track type.Returns:The TrackOutput for the given track identifier.
-
public void endTracks()
Description copied from interface: ExtractorOutput
Called when all tracks have been identified, meaning no new trackId values will be passed to ExtractorOutput.track(int, int).
Specified by:endTracks in interface ExtractorOutput
-
public void seekMap([SeekMap](../extractor/SeekMap.html "interface in com.google.android.exoplayer2.extractor")seekMap)
Description copied from interface: ExtractorOutput
Called when a SeekMap has been extracted from the stream.
Specified by:seekMap in interface ExtractorOutputParameters:seekMap - The extracted SeekMap.
-
public void clearTrackOutputs()
-
public void dump([Dumper](Dumper.html "class in com.google.android.exoplayer2.testutil")dumper)
Description copied from interface: Dumper.Dumpable
Dumps the fields of the object using the dumper.
Specified by:dump in interface Dumper.DumpableParameters:dumper - The Dumper to be used to dump fields.