PacketProcessor


@ExperimentalApi
public interface PacketProcessor<I extends Object, O extends Object> extends 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 extends Object>

The type of the input packets.

<O extends Object>

The type of the output packets.

Summary

Public methods

abstract void

Sets the output PacketConsumer that will receive the processed packets.

Inherited methods

From androidx.media3.effect.PacketConsumer
abstract void

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

abstract void

Releases all resources.

Public methods

setOutput

abstract void setOutput(@NonNull PacketConsumer<@NonNull O> output)

Sets the output PacketConsumer that will receive the processed packets.

Parameters
@NonNull PacketConsumer<@NonNull O> output

The PacketConsumer for the output packets.