FakeExtractorOutput


@UnstableApi
class FakeExtractorOutput : ExtractorOutput, Dumper.Dumpable


A fake ExtractorOutput.

Summary

Public constructors

Public functions

Unit
Unit
dump(dumper: Dumper!)

Dumps the fields of the object using the dumper.

Unit

Called when all tracks have been identified, meaning no new trackId values will be passed to track.

Unit
seekMap(seekMap: SeekMap!)

Called when a SeekMap has been extracted from the stream.

FakeTrackOutput!
track(id: Int, type: Int)

Called by the Extractor to get the TrackOutput for a specific track.

Inherited Constants

From androidx.media3.extractor.ExtractorOutput
const ExtractorOutput!

Placeholder ExtractorOutput implementation throwing an in each method.

Public constructors

FakeExtractorOutput

FakeExtractorOutput()

FakeExtractorOutput

FakeExtractorOutput(trackOutputFactory: FakeTrackOutput.Factory!)

Public functions

clearTrackOutputs

fun clearTrackOutputs(): Unit

dump

fun dump(dumper: Dumper!): Unit

Dumps the fields of the object using the dumper.

Parameters
dumper: Dumper!

The Dumper to be used to dump fields.

endTracks

fun endTracks(): Unit

Called when all tracks have been identified, meaning no new trackId values will be passed to track.

seekMap

fun seekMap(seekMap: SeekMap!): Unit

Called when a SeekMap has been extracted from the stream.

Parameters
seekMap: SeekMap!

The extracted SeekMap.

track

fun track(id: Int, 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.

type: Int

The track type.

Returns
FakeTrackOutput!

The TrackOutput for the given track identifier.

Public properties

numberOfTracks

val numberOfTracksInt

trackOutputs

val trackOutputsSparseArray<FakeTrackOutput!>!

tracksEnded

val tracksEndedBoolean