public final class DefaultSmoothStreamingTrackSelector extends Object implements SmoothStreamingTrackSelector
SmoothStreamingTrackSelector
implementation.SmoothStreamingTrackSelector.Output
Modifier and Type | Method and Description |
---|---|
static DefaultSmoothStreamingTrackSelector |
newAudioInstance() |
static DefaultSmoothStreamingTrackSelector |
newTextInstance() |
static DefaultSmoothStreamingTrackSelector |
newVideoInstance(Context context,
boolean filterVideoRepresentations,
boolean filterProtectedHdContent) |
void |
selectTracks(SmoothStreamingManifest manifest,
SmoothStreamingTrackSelector.Output output)
Outputs a track selection for a given manifest.
|
public static DefaultSmoothStreamingTrackSelector 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 DefaultSmoothStreamingTrackSelector newAudioInstance()
public static DefaultSmoothStreamingTrackSelector newTextInstance()
public void selectTracks(SmoothStreamingManifest manifest, SmoothStreamingTrackSelector.Output output) throws IOException
SmoothStreamingTrackSelector
selectTracks
in interface SmoothStreamingTrackSelector
manifest
- The manifest to process.output
- The output to receive tracks.IOException
- If an error occurs processing the manifest.