public final class DefaultHlsTrackSelector extends Object implements HlsTrackSelector
HlsTrackSelector
implementation.HlsTrackSelector.Output
Modifier and Type | Method and Description |
---|---|
static DefaultHlsTrackSelector |
newAudioInstance()
Creates a
DefaultHlsTrackSelector that selects alternate audio renditions. |
static DefaultHlsTrackSelector |
newDefaultInstance(Context context)
Creates a
DefaultHlsTrackSelector that selects the streams defined in the playlist. |
static DefaultHlsTrackSelector |
newSubtitleInstance()
Creates a
DefaultHlsTrackSelector that selects subtitle renditions. |
void |
selectTracks(HlsMasterPlaylist playlist,
HlsTrackSelector.Output output)
Outputs a track selection for a given period.
|
public static DefaultHlsTrackSelector newDefaultInstance(Context context)
DefaultHlsTrackSelector
that selects the streams defined in the playlist.context
- A context.public static DefaultHlsTrackSelector newAudioInstance()
DefaultHlsTrackSelector
that selects alternate audio renditions.public static DefaultHlsTrackSelector newSubtitleInstance()
DefaultHlsTrackSelector
that selects subtitle renditions.public void selectTracks(HlsMasterPlaylist playlist, HlsTrackSelector.Output output) throws IOException
HlsTrackSelector
selectTracks
in interface HlsTrackSelector
playlist
- The master playlist to process.output
- The output to receive tracks.IOException
- If an error occurs processing the period.