# DashMediaSource.Factory

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

*** ** * ** ***


```
class DashMediaSource.Factory : MediaSourceFactory
```

<br />

*** ** * ** ***

Factory for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource`s.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#Factory(androidx.media3.datasource.DataSource.Factory)(dataSourceFactory: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource.Factory!)` Creates a new factory for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource`s. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#Factory(androidx.media3.exoplayer.dash.DashChunkSource.Factory,androidx.media3.datasource.DataSource.Factory)( chunkSourceFactory: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashChunkSource.Factory!, manifestDataSourceFactory: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource.Factory? )` Creates a new factory for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource`s. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#createMediaSource(androidx.media3.exoplayer.dash.manifest.DashManifest)(manifest: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest!)` Returns a new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource` using the current parameters and the specified sideloaded manifest. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#createMediaSource(androidx.media3.common.MediaItem)(mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!)` Returns a new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource` using the current parameters. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#createMediaSource(androidx.media3.exoplayer.dash.manifest.DashManifest,androidx.media3.common.MediaItem)(manifest: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest!, mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!)` Returns a new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource` using the current parameters and the specified sideloaded manifest. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html [experimentalParseSubtitlesDuringExtraction](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#experimentalParseSubtitlesDuringExtraction(boolean))( parseSubtitlesDuringExtraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** This method (and all support for 'legacy' subtitle decoding during rendering) will be removed in a future release. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.ContentType https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#getSupportedTypes()()` Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/C.ContentType` supported by media sources created by this factory. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#setCmcdConfigurationFactory(androidx.media3.exoplayer.upstream.CmcdConfiguration.Factory)( cmcdConfigurationFactory: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/CmcdConfiguration.Factory! )` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/CmcdConfiguration.Factory` used to obtain a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/CmcdConfiguration` for a `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#setCompositeSequenceableLoaderFactory(androidx.media3.exoplayer.source.CompositeSequenceableLoaderFactory)( compositeSequenceableLoaderFactory: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/CompositeSequenceableLoaderFactory! )` Sets the factory to create composite `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/SequenceableLoader`s for when this media source loads data from multiple streams (video, audio etc...). |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#setDownloadExecutor(com.google.common.base.Supplier<androidx.media3.exoplayer.util.ReleasableExecutor>)(downloadExecutor: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/base/Supplier.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/util/ReleasableExecutor!>!)` Sets a supplier for an `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/util/ReleasableExecutor` that is used for loading the media. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#setDrmSessionManagerProvider(androidx.media3.exoplayer.drm.DrmSessionManagerProvider)( drmSessionManagerProvider: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/DrmSessionManagerProvider! )` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/DrmSessionManagerProvider` used to obtain a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/DrmSessionManager` for a `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#setFallbackTargetLiveOffsetMs(long)(fallbackTargetLiveOffsetMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the target `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentLiveOffset()` that is used if no value is defined in the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` or the manifest. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#setLoadErrorHandlingPolicy(androidx.media3.exoplayer.upstream.LoadErrorHandlingPolicy)( loadErrorHandlingPolicy: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy! )` Sets an optional `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#setManifestParser(androidx.media3.exoplayer.upstream.ParsingLoadable.Parser<? extends androidx.media3.exoplayer.dash.manifest.DashManifest>)(manifestParser: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Parser<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest!>?)` Sets the manifest parser to parse loaded manifest data when loading a manifest URI. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#setMinLiveStartPositionUs(long)(minLiveStartPositionUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the minimum position to start playback from in a live stream, in microseconds relative to the start of the live window. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#setSubtitleParserFactory(androidx.media3.extractor.text.SubtitleParser.Factory)(subtitleParserFactory: https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.Factory!)` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.Factory` to be used for parsing subtitles during extraction. |

### Inherited Constants

From [androidx.media3.exoplayer.source.MediaSource.Factory](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory) `const https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory!` `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi
https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory#UNSUPPORTED()`

An instance that throws `https://developer.android.com/reference/java/lang/UnsupportedOperationException.html` from `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory#createMediaSource(androidx.media3.common.MediaItem)` and `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory#getSupportedTypes()`.
From [androidx.media3.exoplayer.source.MediaSourceFactory](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSourceFactory) `const https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSourceFactory!` `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi
https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSourceFactory#UNSUPPORTED()`

An instance that throws `https://developer.android.com/reference/java/lang/UnsupportedOperationException.html` from `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory#createMediaSource(androidx.media3.common.MediaItem)` and `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory#getSupportedTypes()`.

## Public constructors

### Factory

```
Factory(dataSourceFactory: DataSource.Factory!)
```

Creates a new factory for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource`s.

The factory will use the following default components:

- `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DefaultDashChunkSource.Factory`
- `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/DefaultDrmSessionManagerProvider`
- `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/DefaultLoadErrorHandlingPolicy`
- `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/DefaultCompositeSequenceableLoaderFactory`

| Parameters |
|---|---|
| `dataSourceFactory: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource.Factory!` | A factory for `https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource` instances that will be used to load manifest and media data. |

### Factory

```
Factory(
    chunkSourceFactory: DashChunkSource.Factory!,
    manifestDataSourceFactory: DataSource.Factory?
)
```

Creates a new factory for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource`s.

The factory will use the following default components:

- `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/DefaultDrmSessionManagerProvider`
- `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/DefaultLoadErrorHandlingPolicy`
- `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/DefaultCompositeSequenceableLoaderFactory`

| Parameters |
|---|---|
| `chunkSourceFactory: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashChunkSource.Factory!` | A factory for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashChunkSource` instances. |
| `manifestDataSourceFactory: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource.Factory?` | A factory for `https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource` instances that will be used to load (and refresh) the manifest. May be `null` if the factory will only ever be used to create media sources with sideloaded manifests via `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#createMediaSource(androidx.media3.exoplayer.dash.manifest.DashManifest,androidx.media3.common.MediaItem)`. |

## Public functions

### createMediaSource

```
fun createMediaSource(manifest: DashManifest!): DashMediaSource!
```

Returns a new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource` using the current parameters and the specified sideloaded manifest.

| Parameters |
|---|---|
| `manifest: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest!` | The manifest. `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest#dynamic()` must be false. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource`. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest#dynamic()` is true. |

### createMediaSource

```
fun createMediaSource(mediaItem: MediaItem!): DashMediaSource!
```

Returns a new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource` using the current parameters.

| Parameters |
|---|---|
| `mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!` | The media item of the dash stream. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource`. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/NullPointerException.html` | if `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem#localConfiguration()` is `null`. |

### createMediaSource

```
fun createMediaSource(manifest: DashManifest!, mediaItem: MediaItem!): DashMediaSource!
```

Returns a new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource` using the current parameters and the specified sideloaded manifest.

| Parameters |
|---|---|
| `manifest: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest!` | The manifest. `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest#dynamic()` must be false. |
| `mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` to be included in the timeline. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource`. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest#dynamic()` is true. |

### experimentalParseSubtitlesDuringExtraction

```
@CanIgnoreReturnValue
fun [experimentalParseSubtitlesDuringExtraction](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory#experimentalParseSubtitlesDuringExtraction(boolean))(
    parseSubtitlesDuringExtraction: Boolean
): DashMediaSource.Factory!
```

> [!CAUTION]
> **This function is deprecated.**   
>
> This method (and all support for 'legacy' subtitle decoding during rendering) will be removed in a future release.

Sets whether subtitles should be parsed as part of extraction (before being added to the sample queue) or as part of rendering (when being taken from the sample queue). Defaults to `true` (i.e. subtitles will be parsed during extraction).

This method is experimental and will be renamed or removed in a future release.

| Parameters |
|---|---|
| `parseSubtitlesDuringExtraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether to parse subtitles during extraction or rendering. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |

### getSupportedTypes

```
@C.ContentType
fun getSupportedTypes(): Array<Int>!
```

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/C.ContentType` supported by media sources created by this factory.

### setCmcdConfigurationFactory

```
@CanIgnoreReturnValue
fun setCmcdConfigurationFactory(
    cmcdConfigurationFactory: CmcdConfiguration.Factory!
): DashMediaSource.Factory!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/CmcdConfiguration.Factory` used to obtain a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/CmcdConfiguration` for a `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |

### setCompositeSequenceableLoaderFactory

```
@CanIgnoreReturnValue
fun setCompositeSequenceableLoaderFactory(
    compositeSequenceableLoaderFactory: CompositeSequenceableLoaderFactory!
): DashMediaSource.Factory!
```

Sets the factory to create composite `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/SequenceableLoader`s for when this media source loads data from multiple streams (video, audio etc...). The default is an instance of `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/DefaultCompositeSequenceableLoaderFactory`.

| Parameters |
|---|---|
| `compositeSequenceableLoaderFactory: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/CompositeSequenceableLoaderFactory!` | A factory to create composite `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/SequenceableLoader`s for when this media source loads data from multiple streams (video, audio etc...). |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |

### setDownloadExecutor

```
@CanIgnoreReturnValue
fun setDownloadExecutor(downloadExecutor: Supplier<ReleasableExecutor!>!): DashMediaSource.Factory!
```

Sets a supplier for an `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/util/ReleasableExecutor` that is used for loading the media.

| Parameters |
|---|---|
| `downloadExecutor: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/base/Supplier.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/util/ReleasableExecutor!>!` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/base/Supplier.html` that provides an externally managed `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/util/ReleasableExecutor` for downloading and extraction. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |

### setDrmSessionManagerProvider

```
@CanIgnoreReturnValue
fun setDrmSessionManagerProvider(
    drmSessionManagerProvider: DrmSessionManagerProvider!
): DashMediaSource.Factory!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/DrmSessionManagerProvider` used to obtain a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/drm/DrmSessionManager` for a `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |

### setFallbackTargetLiveOffsetMs

```
@CanIgnoreReturnValue
fun setFallbackTargetLiveOffsetMs(fallbackTargetLiveOffsetMs: Long): DashMediaSource.Factory!
```

Sets the target `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentLiveOffset()` that is used if no value is defined in the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` or the manifest.

The default value is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource#DEFAULT_FALLBACK_TARGET_LIVE_OFFSET_MS()`.

| Parameters |
|---|---|
| `fallbackTargetLiveOffsetMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The fallback live target offset in milliseconds. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |

### setLoadErrorHandlingPolicy

```
@CanIgnoreReturnValue
fun setLoadErrorHandlingPolicy(
    loadErrorHandlingPolicy: LoadErrorHandlingPolicy!
): DashMediaSource.Factory!
```

Sets an optional `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/LoadErrorHandlingPolicy`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |

### setManifestParser

```
@CanIgnoreReturnValue
fun setManifestParser(manifestParser: ParsingLoadable.Parser<DashManifest!>?): DashMediaSource.Factory!
```

Sets the manifest parser to parse loaded manifest data when loading a manifest URI.

| Parameters |
|---|---|
| `manifestParser: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/ParsingLoadable.Parser<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/DashManifest!>?` | A parser for loaded manifest data. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |

### setMinLiveStartPositionUs

```
@CanIgnoreReturnValue
fun setMinLiveStartPositionUs(minLiveStartPositionUs: Long): DashMediaSource.Factory!
```

Sets the minimum position to start playback from in a live stream, in microseconds relative to the start of the live window.

This value will override any suggested value from the manifest and helps to prevent `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/BehindLiveWindowException` issues.

The default value is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource#MIN_LIVE_DEFAULT_START_POSITION_US()`.

| Parameters |
|---|---|
| `minLiveStartPositionUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The minimum live start position, in microseconds relative to the start of the live window. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |

### setSubtitleParserFactory

```
@CanIgnoreReturnValue
fun setSubtitleParserFactory(subtitleParserFactory: SubtitleParser.Factory!): DashMediaSource.Factory!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.Factory` to be used for parsing subtitles during extraction.

| Parameters |
|---|---|
| `subtitleParserFactory: https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.Factory!` | The `https://developer.android.com/reference/kotlin/androidx/media3/extractor/text/SubtitleParser.Factory` for parsing subtitles during extraction. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/DashMediaSource.Factory!` | This factory, for convenience. |