Back to Exoplayer

ChunkExtractor.TrackOutputProvider (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/chunk/ChunkExtractor.TrackOutputProvider.html

latest1.8 KB
Original Source

Package com.google.android.exoplayer2.source.chunk

Interface ChunkExtractor.TrackOutputProvider

  • All Known Implementing Classes:BaseMediaChunkOutputEnclosing interface:ChunkExtractor

public static interfaceChunkExtractor.TrackOutputProvider

Provides TrackOutput instances to be written to during extraction.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | TrackOutput | track​(int id, @com.google.android.exoplayer2.C.TrackType int type) | Called to get the TrackOutput for a specific track. |

Method Detail

- 

track

[TrackOutput](../../extractor/TrackOutput.html "interface in com.google.android.exoplayer2.extractor")track​(int id,
                  @com.google.android.exoplayer2.C.TrackType int type)

Called to get the TrackOutput for a specific track.

The same TrackOutput is returned if multiple calls are made with the same id.

Parameters:id - A track identifier.type - The type of the track.Returns:The TrackOutput for the given track identifier.