Class DefaultTrackSelector.Parameters

    • Field Detail

      • allowVideoMixedMimeTypeAdaptiveness

        public final boolean allowVideoMixedMimeTypeAdaptiveness
        Whether to allow adaptive video selections containing mixed MIME types. Adaptations between different MIME types may not be completely seamless, in which case allowVideoNonSeamlessAdaptiveness also needs to be true for mixed MIME type selections to be made. The default value is false.
      • allowVideoNonSeamlessAdaptiveness

        public final boolean allowVideoNonSeamlessAdaptiveness
        Whether to allow adaptive video selections where adaptation may not be completely seamless. The default value is true.
      • allowAudioMixedMimeTypeAdaptiveness

        public final boolean allowAudioMixedMimeTypeAdaptiveness
        Whether to allow adaptive audio selections containing mixed MIME types. Adaptations between different MIME types may not be completely seamless. The default value is false.
      • allowAudioMixedSampleRateAdaptiveness

        public final boolean allowAudioMixedSampleRateAdaptiveness
        Whether to allow adaptive audio selections containing mixed sample rates. Adaptations between different sample rates may not be completely seamless. The default value is false.
      • allowAudioMixedChannelCountAdaptiveness

        public final boolean allowAudioMixedChannelCountAdaptiveness
        Whether to allow adaptive audio selections containing mixed channel counts. Adaptations between different channel counts may not be completely seamless. The default value is false.
      • constrainAudioChannelCountToDeviceCapabilities

        public final boolean constrainAudioChannelCountToDeviceCapabilities
        Whether to constrain audio track selection so that the selected track's channel count does not exceed the device's output capabilities. The default value is true.
      • exceedRendererCapabilitiesIfNecessary

        public final boolean exceedRendererCapabilitiesIfNecessary
        Whether to exceed renderer capabilities when no selection can be made otherwise.

        This parameter applies when all of the tracks available for a renderer exceed the renderer's reported capabilities. If the parameter is true then the lowest quality track will still be selected. Playback may succeed if the renderer has under-reported its true capabilities. If false then no track will be selected. The default value is true.

      • tunnelingEnabled

        public final boolean tunnelingEnabled
        Whether to enable tunneling if possible.
      • allowMultipleAdaptiveSelections

        public final boolean allowMultipleAdaptiveSelections
        Whether multiple adaptive selections with more than one track are allowed. The default value is true.

        Note that tracks are only eligible for adaptation if they define a bitrate, the renderers support the tracks and allow adaptation between them, and they are not excluded based on other track selection parameters.

      • allowInvalidateSelectionsOnRendererCapabilitiesChange

        public final boolean allowInvalidateSelectionsOnRendererCapabilitiesChange
        Whether to allow to invalidate selections on renderer capabilities change. The default value is false.