setPreferredPeakBitrateThreshold
Deprecated
This method will be removed in a later release.
Replace with
playerAdapter.setPreferredPeakBitrateThreshold(maxBitrate: kotlin.Int, minBitrate: kotlin.Int)
Content copied to clipboard
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: that this configuration depends on underlying Player's support.