Interface BandwidthMeter

  • All Known Implementing Classes:
    DefaultBandwidthMeter, ExperimentalBandwidthMeter

    @Deprecated
    public interface BandwidthMeter
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Provides estimates of the currently available bandwidth.
    • Method Detail

      • getBitrateEstimate

        long getBitrateEstimate()
        Deprecated.
        Returns the estimated bitrate.
      • getTimeToFirstByteEstimateUs

        default long getTimeToFirstByteEstimateUs()
        Deprecated.
        Returns the estimated time to first byte, in microseconds, or C.TIME_UNSET if no estimate is available.
      • getTransferListener

        @Nullable
        TransferListener getTransferListener()
        Deprecated.
        Returns the TransferListener that this instance uses to gather bandwidth information from data transfers. May be null if the implementation does not listen to data transfers.