public final class DefaultDashTrackSelector extends Object implements DashTrackSelector
DashTrackSelector implementation.DashTrackSelector.Output| Modifier and Type | Method and Description |
|---|---|
static DefaultDashTrackSelector |
newAudioInstance() |
static DefaultDashTrackSelector |
newTextInstance() |
static DefaultDashTrackSelector |
newVideoInstance(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(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 IOException
DashTrackSelectorselectTracks in interface DashTrackSelectormanifest - the media presentation description to process.periodIndex - The index of the period to process.output - The output to receive tracks.IOException - If an error occurs processing the period.