setPreferredPeakBitrateThreshold

Deprecated

Replaced with setPreferredBitrateThresholds

Configures the Player's Variant Adaptation Logic with the passed maximum bitrate constraint.

Parameters

type

the TrackVariantInfo.Type of elementary stream

peakBitrate

the maximum bitrate in bits per second, up to which Variant Switching can happen. Pass Integer.MAX_VALUE if there need not be any constraint on the variant adaptation. NOTE: This configuration depends on underlying Player's support.