# ServiceDescriptionElement

# ServiceDescriptionElement

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/ServiceDescriptionElement.java+class:androidx.media3.exoplayer.dash.manifest.ServiceDescriptionElement)

*** ** * ** ***

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

<br />

```
@UnstableApi
class ServiceDescriptionElement
```

<br />

*** ** * ** ***

Represents a service description element.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                       ### Public constructors                                                                                                                                                                                                                                                                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ServiceDescriptionElement](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ServiceDescriptionElement#ServiceDescriptionElement(long,long,long,float,float))`(` ` targetOffsetMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` minOffsetMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` maxOffsetMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` minPlaybackSpeed: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`,` ` maxPlaybackSpeed: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) `)` Creates a service description element. |

|                              ### Public properties                              |
|---------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)   | [maxOffsetMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ServiceDescriptionElement#maxOffsetMs()) The maximum live offset in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if undefined.                                                 |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [maxPlaybackSpeed](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ServiceDescriptionElement#maxPlaybackSpeed()) The maximum factor by which playback can be sped up for live speed adjustment, or[RATE_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#RATE_UNSET())if undefined. |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)   | [minOffsetMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ServiceDescriptionElement#minOffsetMs()) The minimum live offset in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if undefined.                                                 |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [minPlaybackSpeed](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ServiceDescriptionElement#minPlaybackSpeed()) The minimum factor by which playback can be sped up for live speed adjustment, or[RATE_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#RATE_UNSET())if undefined. |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)   | [targetOffsetMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ServiceDescriptionElement#targetOffsetMs()) The target live offset in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if undefined.                                            |

## Public constructors

### ServiceDescriptionElement

```
ServiceDescriptionElement(
    targetOffsetMs: Long,
    minOffsetMs: Long,
    maxOffsetMs: Long,
    minPlaybackSpeed: Float,
    maxPlaybackSpeed: Float
)
```

Creates a service description element.  

|                                             Parameters                                              |
|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `targetOffsetMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)     | The target live offset in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if undefined.                                        |
| `minOffsetMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)        | The minimum live offset in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if undefined.                                       |
| `maxOffsetMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)        | The maximum live offset in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if undefined.                                       |
| `minPlaybackSpeed: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | The minimum factor by which playback can be sped up for live speed adjustment, or[RATE_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#RATE_UNSET())if undefined. |
| `maxPlaybackSpeed: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | The maximum factor by which playback can be sped up for live speed adjustment, or[RATE_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#RATE_UNSET())if undefined. |

## Public properties

### maxOffsetMs

```
val maxOffsetMs: Long
```

The maximum live offset in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if undefined.  

### maxPlaybackSpeed

```
val maxPlaybackSpeed: Float
```

The maximum factor by which playback can be sped up for live speed adjustment, or[RATE_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#RATE_UNSET())if undefined.  

### minOffsetMs

```
val minOffsetMs: Long
```

The minimum live offset in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if undefined.  

### minPlaybackSpeed

```
val minPlaybackSpeed: Float
```

The minimum factor by which playback can be sped up for live speed adjustment, or[RATE_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#RATE_UNSET())if undefined.  

### targetOffsetMs

```
val targetOffsetMs: Long
```

The target live offset in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if undefined.