docs/doc/reference/com/google/android/exoplayer2/upstream/TimeToFirstByteEstimator.html
Package com.google.android.exoplayer2.upstream
ExponentialWeightedAverageTimeToFirstByteEstimator, PercentileTimeToFirstByteEstimator[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceTimeToFirstByteEstimator
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 an estimate of the time to first byte of a transfer.
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| long | getTimeToFirstByteEstimateUs() |
Deprecated.
Returns the estimated time to first byte of the response body, in microseconds, or C.TIME_UNSET if no estimate is available.
|
| void | onTransferInitializing(DataSpec dataSpec) |
Deprecated.
Called when a transfer is being initialized.
|
| void | onTransferStart(DataSpec dataSpec) |
Deprecated.
Called when a transfer starts.
|
| void | reset() |
Deprecated.
Resets the estimator. |
-
long getTimeToFirstByteEstimateUs()
Deprecated.
Returns the estimated time to first byte of the response body, in microseconds, or C.TIME_UNSET if no estimate is available.
-
void reset()
Deprecated.
Resets the estimator.
-
void onTransferInitializing([DataSpec](DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec)
Deprecated.
Called when a transfer is being initialized.
Parameters:dataSpec - Describes the data for which the transfer is initialized.
-
void onTransferStart([DataSpec](DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec)
Deprecated.
Called when a transfer starts.
Parameters:dataSpec - Describes the data being transferred.