# DefaultBandwidthMeter.InitialBitrateSupplier

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/upstream/DefaultBandwidthMeter.java+class:androidx.media3.exoplayer.upstream.DefaultBandwidthMeter.InitialBitrateSupplier)

*** ** * ** ***


```
public interface DefaultBandwidthMeter.InitialBitrateSupplier
```

<br />

*** ** * ** ***

Supplies an initial bitrate estimate to the `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/DefaultBandwidthMeter`.

This interface allows applications to provide custom logic for determining the initial bitrate when a bandwidth estimate is unavailable.

## Summary

| ### Public methods |
|---|---|
| `abstract long` | `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/DefaultBandwidthMeter.InitialBitrateSupplier#getInitialBitrateEstimate(int)(@https://developer.android.com/reference/androidx/media3/common/C.NetworkType int networkType)` Returns an initial bitrate estimate in bits per second (bps) for the given network type. |

## Public methods

### getInitialBitrateEstimate

```
abstract long getInitialBitrateEstimate(@C.NetworkType int networkType)
```

Returns an initial bitrate estimate in bits per second (bps) for the given network type.

Implementations can return a specific value based on the `networkType`. If the supplier doesn't have a specific estimate for the given `networkType`, it should return `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()`. In this case, `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/DefaultBandwidthMeter` will fall back to its internal default logic for that network type.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/media3/common/C.NetworkType int networkType` | The current `https://developer.android.com/reference/androidx/media3/common/C.NetworkType`. |

| Returns |
|---|---|
| `long` | The initial bitrate estimate in bps, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` to use the default fallback. |