# SsManifest

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

*** ** * ** ***


```
@UnstableApi
class SsManifest : FilterableManifest<SsManifest!>
```

<br />

*** ** * ** ***

Represents a SmoothStreaming manifest.

See the [IIS Smooth Streaming Client Manifest Format](http://msdn.microsoft.com/en-us/library/ee673436(v=vs.90).aspx)

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest.ProtectionElement` Represents a protection element containing a single header. |
| `class https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest.StreamElement` Represents a StreamIndex element. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#UNSET_LOOKAHEAD() = -1` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#SsManifest(int,int,long,long,long,int,boolean,androidx.media3.exoplayer.smoothstreaming.manifest.SsManifest.ProtectionElement,androidx.media3.exoplayer.smoothstreaming.manifest.SsManifest.StreamElement[])( majorVersion: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, minorVersion: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, timescale: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, duration: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, dvrWindowLength: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, lookAheadCount: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, isLive: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, protectionElement: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest.ProtectionElement?, streamElements: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest.StreamElement!>! )` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#copy(java.util.List<androidx.media3.common.StreamKey>)(streamKeys: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/StreamKey!>!)` Returns a copy of the manifest including only the streams specified by the given keys. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#durationUs()` The overall presentation duration of the media in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if the duration is unknown. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#dvrWindowLengthUs()` The length of the trailing window for a live broadcast in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if the stream is not live or if the window length is unspecified. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#isLive()` Whether the manifest describes a live presentation still in progress. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#lookAheadCount()` The number of fragments in a lookahead, or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#UNSET_LOOKAHEAD()` if the lookahead is unspecified. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#majorVersion()` The client manifest major version. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#minorVersion()` The client manifest minor version. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest.ProtectionElement?` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#protectionElement()` Content protection information, or null if the content is not protected. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest.StreamElement!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#streamElements()` The contained stream elements. |

## Constants

### UNSET_LOOKAHEAD

```
const val UNSET_LOOKAHEAD = -1: Int
```

## Public constructors

### SsManifest

```
SsManifest(
    majorVersion: Int,
    minorVersion: Int,
    timescale: Long,
    duration: Long,
    dvrWindowLength: Long,
    lookAheadCount: Int,
    isLive: Boolean,
    protectionElement: SsManifest.ProtectionElement?,
    streamElements: Array<SsManifest.StreamElement!>!
)
```

| Parameters |
|---|---|
| `majorVersion: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The client manifest major version. |
| `minorVersion: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The client manifest minor version. |
| `timescale: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The timescale of the media as the number of units that pass in one second. |
| `duration: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The overall presentation duration in units of the timescale attribute, or 0 if the duration is unknown. |
| `dvrWindowLength: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The length of the trailing window in units of the timescale attribute, or 0 if this attribute is unspecified or not applicable. |
| `lookAheadCount: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The number of fragments in a lookahead, or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#UNSET_LOOKAHEAD()` if this attribute is unspecified or not applicable. |
| `isLive: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if the manifest describes a live presentation still in progress. False otherwise. |
| `protectionElement: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest.ProtectionElement?` | Content protection information, or null if the content is not protected. |
| `streamElements: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest.StreamElement!>!` | The contained stream elements. |

## Public functions

### copy

```
fun copy(streamKeys: (Mutable)List<StreamKey!>!): SsManifest!
```

Returns a copy of the manifest including only the streams specified by the given keys. If the manifest is unchanged then the instance may return itself.

| Parameters |
|---|---|
| `streamKeys: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/StreamKey!>!` | A non-empty list of stream keys. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest!` | The filtered manifest. |

## Public properties

### durationUs

```
val durationUs: Long
```

The overall presentation duration of the media in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if the duration is unknown.

### dvrWindowLengthUs

```
val dvrWindowLengthUs: Long
```

The length of the trailing window for a live broadcast in microseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if the stream is not live or if the window length is unspecified.

### isLive

```
val isLive: Boolean
```

Whether the manifest describes a live presentation still in progress.

### lookAheadCount

```
val lookAheadCount: Int
```

The number of fragments in a lookahead, or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/smoothstreaming/manifest/SsManifest#UNSET_LOOKAHEAD()` if the lookahead is unspecified.

### majorVersion

```
val majorVersion: Int
```

The client manifest major version.

### minorVersion

```
val minorVersion: Int
```

The client manifest minor version.

### protectionElement

```
val protectionElement: SsManifest.ProtectionElement?
```

Content protection information, or null if the content is not protected.

### streamElements

```
val streamElements: Array<SsManifest.StreamElement!>!
```

The contained stream elements.