FakeExtractorOutput
@UnstableApi
class FakeExtractorOutput : ExtractorOutput, Dumper.Dumpable
A fake ExtractorOutput.
Summary
Public constructors |
|---|
FakeExtractorOutput(trackOutputFactory: FakeTrackOutput.Factory!) |
Public functions |
|
|---|---|
Unit |
|
Unit |
Dumps the fields of the object using the |
Unit |
Called when all tracks have been identified, meaning no new |
ImmutableList<FakeTrackOutput!>! |
getTrackOutputsForType(@C.TrackType trackType: Int)Returns a list of |
Unit |
Called when a |
FakeTrackOutput! |
track(id: Int, @C.TrackType type: Int)Called by the |
Public properties |
|
|---|---|
Int |
|
@MonotonicNonNull SeekMap! |
|
SparseArray<FakeTrackOutput!>! |
|
Boolean |
Inherited Constants |
||
|---|---|---|
|
Public constructors
Public functions
endTracks
fun endTracks(): Unit
Called when all tracks have been identified, meaning no new trackId values will be passed to track.
getTrackOutputsForType
fun getTrackOutputsForType(@C.TrackType trackType: Int): ImmutableList<FakeTrackOutput!>!
Returns a list of FakeTrackOutput of given C.TrackType.
| Parameters | |
|---|---|
@C.TrackType trackType: Int |
The |
| Returns | |
|---|---|
ImmutableList<FakeTrackOutput!>! |
A list of |
seekMap
fun seekMap(seekMap: SeekMap!): Unit
Called when a SeekMap has been extracted from the stream.
track
fun track(id: Int, @C.TrackType type: Int): FakeTrackOutput!
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.
| Parameters | |
|---|---|
id: Int |
A track identifier. |
@C.TrackType type: Int |
The |
| Returns | |
|---|---|
FakeTrackOutput! |
The |