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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BandwidthMeter.EventListener
Deprecated.A listener ofBandwidthMeter
events.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description void
addEventListener(Handler eventHandler, BandwidthMeter.EventListener eventListener)
Deprecated.Adds anBandwidthMeter.EventListener
.long
getBitrateEstimate()
Deprecated.Returns the estimated bitrate.default long
getTimeToFirstByteEstimateUs()
Deprecated.Returns the estimated time to first byte, in microseconds, orC.TIME_UNSET
if no estimate is available.TransferListener
getTransferListener()
Deprecated.Returns theTransferListener
that this instance uses to gather bandwidth information from data transfers.void
removeEventListener(BandwidthMeter.EventListener eventListener)
Deprecated.Removes anBandwidthMeter.EventListener
.
-
-
-
Method Detail
-
getBitrateEstimate
long getBitrateEstimate()
Deprecated.Returns the estimated bitrate.
-
getTimeToFirstByteEstimateUs
default long getTimeToFirstByteEstimateUs()
Deprecated.Returns the estimated time to first byte, in microseconds, orC.TIME_UNSET
if no estimate is available.
-
getTransferListener
@Nullable TransferListener getTransferListener()
Deprecated.Returns theTransferListener
that this instance uses to gather bandwidth information from data transfers. May be null if the implementation does not listen to data transfers.
-
addEventListener
void addEventListener(Handler eventHandler, BandwidthMeter.EventListener eventListener)
Deprecated.Adds anBandwidthMeter.EventListener
.- Parameters:
eventHandler
- A handler for events.eventListener
- A listener of events.
-
removeEventListener
void removeEventListener(BandwidthMeter.EventListener eventListener)
Deprecated.Removes anBandwidthMeter.EventListener
.- Parameters:
eventListener
- The listener to be removed.
-
-