# BundledChunkExtractor.ManifestFormatMerger

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

*** ** * ** ***


```
public interface BundledChunkExtractor.ManifestFormatMerger
```

<br />

*** ** * ** ***

Interface for merging `https://developer.android.com/reference/androidx/media3/common/Format` instances from the extracted samples and the manifest.

## Summary

| ### Constants |
|---|---|
| `default static final https://developer.android.com/reference/androidx/media3/exoplayer/source/chunk/BundledChunkExtractor.ManifestFormatMerger` | `https://developer.android.com/reference/androidx/media3/exoplayer/source/chunk/BundledChunkExtractor.ManifestFormatMerger#DEFAULT()` The default manifest format merger using `https://developer.android.com/reference/androidx/media3/common/Format#withManifestFormatInfo(androidx.media3.common.Format)`. |

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/androidx/media3/common/Format` | `https://developer.android.com/reference/androidx/media3/exoplayer/source/chunk/BundledChunkExtractor.ManifestFormatMerger#merge(androidx.media3.common.Format,androidx.media3.common.Format)(https://developer.android.com/reference/androidx/media3/common/Format sampleFormat, @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/common/Format primaryTrackManifestFormat)` Merges the sample and manifest formats. |

## Constants

### DEFAULT

```
default static final BundledChunkExtractor.ManifestFormatMerger DEFAULT
```

The default manifest format merger using `https://developer.android.com/reference/androidx/media3/common/Format#withManifestFormatInfo(androidx.media3.common.Format)`.

## Public methods

### merge

```
abstract Format merge(Format sampleFormat, @Nullable Format primaryTrackManifestFormat)
```

Merges the sample and manifest formats.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/Format sampleFormat` | The `https://developer.android.com/reference/androidx/media3/common/Format` from extracted samples. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/common/Format primaryTrackManifestFormat` | The `https://developer.android.com/reference/androidx/media3/common/Format` of the associated primary manifest. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/Format` | The merged `https://developer.android.com/reference/androidx/media3/common/Format` combining both sources of information. |