PacketProcessor


@ExperimentalApi
interface PacketProcessor<I : Any?, O : Any?> : PacketConsumer


A PacketConsumer that processes Packets and forwards them to a downstream PacketConsumer.

This interface is experimental and will be renamed or removed in a future release.

Parameters
<I : Any?>

The type of the input packets.

<O : Any?>

The type of the output packets.

Summary

Public functions

Unit

Sets the output PacketConsumer that will receive the processed packets.

Inherited functions

From androidx.media3.effect.PacketConsumer
suspend Unit

Queues a Packet for processing, suspending the caller if the consumer is at capacity.

suspend Unit

Releases all resources.

Public functions

setOutput

fun setOutput(output: PacketConsumer<O>): Unit

Sets the output PacketConsumer that will receive the processed packets.

Parameters
output: PacketConsumer<O>

The PacketConsumer for the output packets.