# 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)

*** ** * ** ***


```
class OggMuxer.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

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

## Public constructors

### Builder

```
Builder(outputChannel: WritableByteChannel!)
```

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

| Parameters |
|---|---|
| `outputChannel: https://developer.android.com/reference/java/nio/channels/WritableByteChannel.html!` | 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/kotlin/androidx/media3/muxer/OggMuxer#close()` is called on the muxer. |

## Public functions

### build

```
fun build(): OggMuxer!
```

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

### setVendorString

```
@CanIgnoreReturnValue
fun setVendorString(vendorString: String!): OggMuxer.Builder!
```

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

| Parameters |
|---|---|
| `vendorString: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The vendor string to use. |

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