> Documentation index: https://developer.android.com/reference/llms.txt

# BaseUrl

Artifact: [androidx.media3:media3-exoplayer-dash](https://developer.android.com/jetpack/androidx/releases/media3.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/dash/manifest/BaseUrl.java+class:androidx.media3.exoplayer.dash.manifest.BaseUrl)

*** ** * ** ***


```
@UnstableApi
public final class BaseUrl
```

<br />

*** ** * ** ***

A base URL, as defined by ISO 23009-1, 2nd edition, 5.6. and ETSI TS 103 285 V1.2.1, 10.8.2.1

## Summary

| ### Constants |
|---|---|
| `static final int` | `DEFAULT_DVB_PRIORITY = 1` The default priority. |
| `static final int` | `DEFAULT_WEIGHT = 1` The default weight. |
| `static final int` | `PRIORITY_UNSET = -2147483648` Constant representing an unset priority in a manifest that does not declare a DVB profile. |

| ### Public fields |
|---|---|
| `final int` | `priority` The priority. |
| `final String` | `serviceLocation` The service location. |
| `final String` | `url` The URL. |
| `final int` | `weight` The weight. |

| ### Public constructors |
|---|
| `BaseUrl(String url)` Creates an instance with `an unset priority`, `default weight` and using the URL as the service location. |
| `BaseUrl(String url, String serviceLocation, int priority, int weight)` Creates an instance. |

| ### Public methods |
|---|---|
| `boolean` | `equals(@Nullable Object o)` |
| `int` | `hashCode()` |

## Constants

### DEFAULT_DVB_PRIORITY

```
public static final int DEFAULT_DVB_PRIORITY = 1
```

The default priority.

### DEFAULT_WEIGHT

```
public static final int DEFAULT_WEIGHT = 1
```

The default weight.

### PRIORITY_UNSET

```
public static final int PRIORITY_UNSET = -2147483648
```

Constant representing an unset priority in a manifest that does not declare a DVB profile.

## Public fields

### priority

```
public final int priority
```

The priority.

### serviceLocation

```
public final String serviceLocation
```

The service location.

### url

```
public final String url
```

The URL.

### weight

```
public final int weight
```

The weight.

## Public constructors

### BaseUrl

```
public BaseUrl(String url)
```

Creates an instance with `an unset priority`, `default weight` and using the URL as the service location.

### BaseUrl

```
public BaseUrl(String url, String serviceLocation, int priority, int weight)
```

Creates an instance.

## Public methods

### equals

```
public boolean equals(@Nullable Object o)
```

### hashCode

```
public int hashCode()
```