setPreferredBitrateThresholds

open fun setPreferredBitrateThresholds(maxBitrate: Int, minBitrate: Int)

Configures the Player's Variant Adaptation Logic with the passed maximum and minimum bitrate constraints.

Parameters

maxBitrate

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.

minBitrate

the minimum bitrate in bits per second, beyond which Variant Switching can happen. Pass 0 if there need not be any constraint on the variant adaptation. NOTE: These configurations depend on underlying Player's support.