# BaseUrl

# BaseUrl

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/dash/manifest/BaseUrl "View this page in Java")

<br />

```
@UnstableApi
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                                    |
|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DEFAULT_DVB_PRIORITY](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#DEFAULT_DVB_PRIORITY())` = 1` The default priority.                                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DEFAULT_WEIGHT](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#DEFAULT_WEIGHT())` = 1` The default weight.                                                                                  |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PRIORITY_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#PRIORITY_UNSET())` = -2147483648` Constant representing an unset priority in a manifest that does not declare a DVB profile. |

|                                                                                                                                                                                                                                                                          ### Public constructors                                                                                                                                                                                                                                                                          |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BaseUrl](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#BaseUrl(java.lang.String))`(url: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!)` Creates an instance with[an unset priority](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#PRIORITY_UNSET()),[default weight](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#DEFAULT_WEIGHT())and using the URL as the service location. |
| [BaseUrl](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#BaseUrl(java.lang.String,java.lang.String,int,int))`(url: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!, serviceLocation: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!, priority: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, weight: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Creates an instance.     |

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#equals(java.lang.Object))`(o: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#hashCode())`()`                                                                                              |

|                                ### Public properties                                 |
|--------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [priority](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#priority()) The priority.                       |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [serviceLocation](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#serviceLocation()) The service location. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [url](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#url()) The URL.                                      |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)          | [weight](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#weight()) The weight.                             |

## Constants

### DEFAULT_DVB_PRIORITY

```
const val DEFAULT_DVB_PRIORITY = 1: Int
```

The default priority.  

### DEFAULT_WEIGHT

```
const val DEFAULT_WEIGHT = 1: Int
```

The default weight.  

### PRIORITY_UNSET

```
const val PRIORITY_UNSET = -2147483648: Int
```

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

## Public constructors

### BaseUrl

```
BaseUrl(url: String!)
```

Creates an instance with[an unset priority](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#PRIORITY_UNSET()),[default weight](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/BaseUrl#DEFAULT_WEIGHT())and using the URL as the service location.  

### BaseUrl

```
BaseUrl(url: String!, serviceLocation: String!, priority: Int, weight: Int)
```

Creates an instance.  

## Public functions

### equals

```
fun equals(o: Any?): Boolean
```  

### hashCode

```
fun hashCode(): Int
```  

## Public properties

### priority

```
val priority: Int
```

The priority.  

### serviceLocation

```
val serviceLocation: String!
```

The service location.  

### url

```
val url: String!
```

The URL.  

### weight

```
val weight: Int
```

The weight.