RenderingPacketConsumer


@ExperimentalApi
public interface RenderingPacketConsumer<I extends Object, O extends Object> extends PacketConsumer


A PacketConsumer that renders input Packets to an output O.

Summary

Public methods

abstract void

Sets a Consumer to handle any Exceptions that occur during rendering.

abstract void
setRenderOutput(O output)

Sets the target for where input frames are rendered to.

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

setErrorConsumer

abstract void setErrorConsumer(@NonNull Consumer<@NonNull Exception> errorConsumer)

Sets a Consumer to handle any Exceptions that occur during rendering.

setRenderOutput

abstract void setRenderOutput(O output)

Sets the target for where input frames are rendered to.