public final class DefaultDashTrackSelector extends java.lang.Object implements DashTrackSelector
DashTrackSelector
implementation.DashTrackSelector.Output
Modifier and Type | Method and Description |
---|---|
static DefaultDashTrackSelector |
newAudioInstance() |
static DefaultDashTrackSelector |
newTextInstance() |
static DefaultDashTrackSelector |
newVideoInstance(android.content.Context context,
boolean filterVideoRepresentations,
boolean filterProtectedHdContent) |
void |
selectTracks(MediaPresentationDescription manifest,
int periodIndex,
DashTrackSelector.Output output)
Outputs a track selection for a given period.
|
public static DefaultDashTrackSelector newVideoInstance(android.content.Context context, boolean filterVideoRepresentations, boolean filterProtectedHdContent)
context
- A context. May be null if filterVideoRepresentations == false
.filterVideoRepresentations
- Whether video representations should be filtered according to
the capabilities of the device. It is strongly recommended to set this to true
,
unless the application has already verified that all representations are playable.filterProtectedHdContent
- Whether video representations that are both drm protected and
high definition should be filtered when tracks are built. If
filterVideoRepresentations == false
then this parameter is ignored.public static DefaultDashTrackSelector newAudioInstance()
public static DefaultDashTrackSelector newTextInstance()
public void selectTracks(MediaPresentationDescription manifest, int periodIndex, DashTrackSelector.Output output) throws java.io.IOException
DashTrackSelector
selectTracks
in interface DashTrackSelector
manifest
- the media presentation description to process.periodIndex
- The index of the period to process.output
- The output to receive tracks.java.io.IOException
- If an error occurs processing the period.