Class SlidingWeightedAverageBandwidthStatistic.Sample

    • Field Detail

      • bitrate

        public final long bitrate
        The sample bitrate.
      • weight

        public final double weight
        The sample weight.
      • timeAddedMs

        public final long timeAddedMs
        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 Clock.elapsedRealtime().
    • Constructor Detail

      • Sample

        public Sample​(long bitrate,
                      double weight,
                      long timeAddedMs)
        Creates a new sample.