# FakeFrameProcessor.Factory

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

*** ** * ** ***


```
class FakeFrameProcessor.Factory : FrameProcessor.Factory
```

<br />

*** ** * ** ***

A factory for `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/FakeFrameProcessor` implementations.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/FakeFrameProcessor.Factory#Factory(boolean)(shouldCompleteIncomingFrames: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Creates a new instance. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/FakeFrameProcessor!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/FakeFrameProcessor.Factory#create(androidx.media3.common.video.FrameWriter)(output: https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter!)` Helper create method for tests that don't need to specify listener. |
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/FakeFrameProcessor!` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/FakeFrameProcessor.Factory#create(androidx.media3.common.video.FrameWriter,java.util.concurrent.Executor,androidx.media3.common.video.FrameProcessor.Listener)( output: https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter!, listenerExecutor: https://developer.android.com/reference/java/util/concurrent/Executor.html!, listener: https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor.Listener! )` Creates a `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` that sends frames to the given `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter`. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/FakeFrameProcessor?` | `https://developer.android.com/reference/kotlin/androidx/media3/test/utils/FakeFrameProcessor.Factory#createdProcessor()` |

## Public constructors

### Factory

```
Factory(shouldCompleteIncomingFrames: Boolean)
```

Creates a new instance.

| Parameters |
|---|---|
| `shouldCompleteIncomingFrames: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | When true, the `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` will call the completion listener for every queued frame. |

## Public functions

### create

```
fun create(output: FrameWriter!): FakeFrameProcessor!
```

Helper create method for tests that don't need to specify listener.

### create

```
fun create(
    output: FrameWriter!,
    listenerExecutor: Executor!,
    listener: FrameProcessor.Listener!
): FakeFrameProcessor!
```

Creates a `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` that sends frames to the given `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter`.

The created `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` does not `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter#close()` the passed in `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter`.

| Parameters |
|---|---|
| `output: https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter!` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameWriter` to which the `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` outputs. |
| `listenerExecutor: https://developer.android.com/reference/java/util/concurrent/Executor.html!` | The `https://developer.android.com/reference/java/util/concurrent/Executor.html` on which the `listener` is invoked. |
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor.Listener!` | A `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor.Listener` to be invoked for `https://developer.android.com/reference/kotlin/androidx/media3/common/video/FrameProcessor` events. |

## Public properties

### createdProcessor

```
val createdProcessor: FakeFrameProcessor?
```