# OggMuxer.Builder

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

*** ** * ** ***


```
public final class OggMuxer.Builder
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer` instances.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer.Builder#Builder(java.nio.channels.WritableByteChannel)(https://developer.android.com/reference/java/nio/channels/WritableByteChannel.html outputChannel)` Creates a `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer.Builder`. |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer` | `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer.Builder#build()()` Builds an `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer`. |
| `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/muxer/OggMuxer.Builder#setVendorString(java.lang.String)(https://developer.android.com/reference/java/lang/String.html vendorString)` Sets the vendor string written to the track's comment header. |

## Public constructors

### Builder

```
public Builder(WritableByteChannel outputChannel)
```

Creates a `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer.Builder`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/nio/channels/WritableByteChannel.html outputChannel` | The `https://developer.android.com/reference/java/nio/channels/WritableByteChannel.html` where the output will be written. The `outputChannel` will be closed when `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer#close()` is called on the muxer. |

## Public methods

### build

```
public OggMuxer build()
```

Builds an `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer`.

### setVendorString

```
@CanIgnoreReturnValue
public OggMuxer.Builder setVendorString(String vendorString)
```

Sets the vendor string written to the track's comment header. The default value is `https://developer.android.com/reference/androidx/media3/common/MediaLibraryInfo#VERSION_SLASHY()`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html vendorString` | The vendor string to use. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/media3/muxer/OggMuxer.Builder` | This builder. |