# ForwardingExtractorOutput

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

*** ** * ** ***


```
@UnstableApi
public class ForwardingExtractorOutput implements ExtractorOutput
```

<br />

*** ** * ** ***

An overridable `https://developer.android.com/reference/androidx/media3/extractor/ExtractorOutput` implementation which forwards all methods to another `https://developer.android.com/reference/androidx/media3/extractor/ExtractorOutput`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/extractor/ForwardingExtractorOutput#ForwardingExtractorOutput(androidx.media3.extractor.ExtractorOutput)(https://developer.android.com/reference/androidx/media3/extractor/ExtractorOutput output)` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/media3/extractor/ForwardingExtractorOutput#endTracks()()` Called when all tracks have been identified, meaning no new `trackId` values will be passed to `https://developer.android.com/reference/androidx/media3/extractor/ExtractorOutput#track(int,int)`. |
| `void` | `https://developer.android.com/reference/androidx/media3/extractor/ForwardingExtractorOutput#seekMap(androidx.media3.extractor.SeekMap)(https://developer.android.com/reference/androidx/media3/extractor/SeekMap seekMap)` Called when a `https://developer.android.com/reference/androidx/media3/extractor/SeekMap` has been extracted from the stream. |
| `https://developer.android.com/reference/androidx/media3/extractor/TrackOutput` | `https://developer.android.com/reference/androidx/media3/extractor/ForwardingExtractorOutput#track(int,int)(int id, @https://developer.android.com/reference/androidx/media3/common/C.TrackType int type)` Called by the `https://developer.android.com/reference/androidx/media3/extractor/Extractor` to get the `https://developer.android.com/reference/androidx/media3/extractor/TrackOutput` for a specific track. |

| ### Inherited Constants |
|---|
| From [androidx.media3.extractor.ExtractorOutput](https://developer.android.com/reference/androidx/media3/extractor/ExtractorOutput) |---|---| | `static final https://developer.android.com/reference/androidx/media3/extractor/ExtractorOutput` | `https://developer.android.com/reference/androidx/media3/extractor/ExtractorOutput#PLACEHOLDER()` Placeholder `https://developer.android.com/reference/androidx/media3/extractor/ExtractorOutput` implementation throwing an `https://developer.android.com/reference/java/lang/UnsupportedOperationException.html` in each method. | |

## Public constructors

### ForwardingExtractorOutput

```
public ForwardingExtractorOutput(ExtractorOutput output)
```

## Public methods

### endTracks

```
public void endTracks()
```

Called when all tracks have been identified, meaning no new `trackId` values will be passed to `https://developer.android.com/reference/androidx/media3/extractor/ExtractorOutput#track(int,int)`.

### seekMap

```
public void seekMap(SeekMap seekMap)
```

Called when a `https://developer.android.com/reference/androidx/media3/extractor/SeekMap` has been extracted from the stream.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/media3/extractor/SeekMap seekMap` | The extracted `https://developer.android.com/reference/androidx/media3/extractor/SeekMap`. |

### track

```
public TrackOutput track(int id, @C.TrackType int type)
```

Called by the `https://developer.android.com/reference/androidx/media3/extractor/Extractor` to get the `https://developer.android.com/reference/androidx/media3/extractor/TrackOutput` for a specific track.

The same `https://developer.android.com/reference/androidx/media3/extractor/TrackOutput` is returned if multiple calls are made with the same `
id`.

| Parameters |
|---|---|
| `int id` | A track identifier. |
| `@https://developer.android.com/reference/androidx/media3/common/C.TrackType int type` | The `https://developer.android.com/reference/androidx/media3/common/C.TrackType`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/media3/extractor/TrackOutput` | The `https://developer.android.com/reference/androidx/media3/extractor/TrackOutput` for the given track identifier. |