BandwidthMeterType

BandwidthMeterType

sealed interface BandwidthMeterType : Parcelable

Defines the bandwidth meter to be used by the player.

Inheritors

Default
Experimental

Types

NameSummary
Defaultdata class Default(val bandwidthEstimateWeightLimit: Int = DEFAULT_BANDWIDTH_ESTIMATE_WEIGHT_LIMIT) : BandwidthMeterType
The default bandwidth meter type.
Experimentaldata class Experimental(val bandwidthEstimationMode: BandwidthEstimationMode = BandwidthEstimationMode.SlidingPercentile(), val minBytesTransferred: Long = (512 * 1024).toLong(), val usePreloadHintsForBandwidthEstimation: Boolean = false) : BandwidthMeterType
An experimental bandwidth meter with improved algorithms. Contrary to the Default bandwidth meter, this also includes connection opening times in its estimate.