SlidingWeightedAverageBandwidthStatistic.Sample


class SlidingWeightedAverageBandwidthStatistic.Sample


Represents a bandwidth sample.

Summary

Public constructors

Sample(bitrate: Long, weight: Double, timeAddedMs: Long)

Creates a new sample.

Public properties

Long

The sample bitrate.

Long

The time this sample was added, in milliseconds.

Double

The sample weight.

Public constructors

Sample

Sample(bitrate: Long, weight: Double, timeAddedMs: Long)

Creates a new sample.

Public properties

bitrate

val bitrateLong

The sample bitrate.

timeAddedMs

val timeAddedMsLong

The time this sample was added, in milliseconds. Timestamps should come from the same source, so that samples can reliably be ordered in time. It is suggested to use elapsedRealtime.

weight

val weightDouble

The sample weight.