Class CombinedParallelSampleBandwidthEstimator
- java.lang.Object
-
- com.google.android.exoplayer2.upstream.experimental.CombinedParallelSampleBandwidthEstimator
-
- All Implemented Interfaces:
BandwidthEstimator
@Deprecated public class CombinedParallelSampleBandwidthEstimator extends Object implements BandwidthEstimator
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.ABandwidthEstimatorthat captures a transfer sample each time all parallel transfers end.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCombinedParallelSampleBandwidthEstimator.BuilderDeprecated.A builder to createCombinedParallelSampleBandwidthEstimatorinstances.
-
Field Summary
-
Fields inherited from interface com.google.android.exoplayer2.upstream.experimental.BandwidthEstimator
ESTIMATE_NOT_AVAILABLE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddEventListener(Handler eventHandler, BandwidthMeter.EventListener eventListener)Deprecated.Adds anBandwidthMeter.EventListener.longgetBandwidthEstimate()Deprecated.Returns the bandwidth estimate in bits per second, orBandwidthEstimator.ESTIMATE_NOT_AVAILABLEif there is no estimate available yet.voidonBytesTransferred(DataSource source, int bytesTransferred)Deprecated.Called incrementally during a transfer.voidonNetworkTypeChange(long newBandwidthEstimate)Deprecated.Notifies this estimator that a network change has been detected.voidonTransferEnd(DataSource source)Deprecated.Called when a transfer ends.voidonTransferInitializing(DataSource source)Deprecated.Called when a transfer is being initialized.voidonTransferStart(DataSource source)Deprecated.Called when a transfer starts.voidremoveEventListener(BandwidthMeter.EventListener eventListener)Deprecated.Removes anBandwidthMeter.EventListener.
-
-
-
Method Detail
-
addEventListener
public void addEventListener(Handler eventHandler, BandwidthMeter.EventListener eventListener)
Deprecated.Description copied from interface:BandwidthEstimatorAdds anBandwidthMeter.EventListener.- Specified by:
addEventListenerin interfaceBandwidthEstimator- Parameters:
eventHandler- A handler for events.eventListener- A listener of events.
-
removeEventListener
public void removeEventListener(BandwidthMeter.EventListener eventListener)
Deprecated.Description copied from interface:BandwidthEstimatorRemoves anBandwidthMeter.EventListener.- Specified by:
removeEventListenerin interfaceBandwidthEstimator- Parameters:
eventListener- The listener to be removed.
-
onTransferInitializing
public void onTransferInitializing(DataSource source)
Deprecated.Description copied from interface:BandwidthEstimatorCalled when a transfer is being initialized.- Specified by:
onTransferInitializingin interfaceBandwidthEstimator- Parameters:
source- TheDataSourceperforming the transfer.
-
onTransferStart
public void onTransferStart(DataSource source)
Deprecated.Description copied from interface:BandwidthEstimatorCalled when a transfer starts.- Specified by:
onTransferStartin interfaceBandwidthEstimator- Parameters:
source- TheDataSourceperforming the transfer.
-
onBytesTransferred
public void onBytesTransferred(DataSource source, int bytesTransferred)
Deprecated.Description copied from interface:BandwidthEstimatorCalled incrementally during a transfer.- Specified by:
onBytesTransferredin interfaceBandwidthEstimator- Parameters:
source- TheDataSourceperforming the transfer.bytesTransferred- The number of bytes transferred since the previous call to this method
-
onTransferEnd
public void onTransferEnd(DataSource source)
Deprecated.Description copied from interface:BandwidthEstimatorCalled when a transfer ends.- Specified by:
onTransferEndin interfaceBandwidthEstimator- Parameters:
source- TheDataSourceperforming the transfer.
-
getBandwidthEstimate
public long getBandwidthEstimate()
Deprecated.Description copied from interface:BandwidthEstimatorReturns the bandwidth estimate in bits per second, orBandwidthEstimator.ESTIMATE_NOT_AVAILABLEif there is no estimate available yet.- Specified by:
getBandwidthEstimatein interfaceBandwidthEstimator
-
onNetworkTypeChange
public void onNetworkTypeChange(long newBandwidthEstimate)
Deprecated.Description copied from interface:BandwidthEstimatorNotifies this estimator that a network change has been detected.- Specified by:
onNetworkTypeChangein interfaceBandwidthEstimator- Parameters:
newBandwidthEstimate- The new initial bandwidth estimate based on network type.
-
-