PlayerMessage.Target


interface PlayerMessage.Target

Known direct subclasses
ActionSchedule.PlayerTarget

Provides a wrapper for a Target which has access to the player when handling messages.

Renderer

Renders media read from a SampleStream.

Known indirect subclasses
BaseRenderer

An abstract base class suitable for most Renderer implementations.

CameraMotionRenderer

A Renderer that parses the camera motion track.

DecoderAudioRenderer

Decodes and renders audio using a Decoder.

DecoderVideoRenderer

Decodes and renders video using a Decoder.

FakeAudioRenderer

A FakeRenderer that supports TRACK_TYPE_AUDIO.

FakeMediaClockRenderer

Fake abstract Renderer which is also a MediaClock.

FakeRenderer

Fake Renderer that supports any format with the matching track type.

FakeVideoRenderer

A FakeRenderer that supports TRACK_TYPE_VIDEO.

ForwardingRenderer

An overridable Renderer implementation forwarding all methods to another renderer.

ImageRenderer

A Renderer implementation for images.

MediaCodecAudioRenderer

Decodes and renders audio using MediaCodec and an AudioSink.

MediaCodecRenderer

An abstract renderer that uses MediaCodec to decode samples for rendering.

MediaCodecVideoRenderer

Decodes and renders video using MediaCodec.

MetadataRenderer

A renderer for metadata.

NoSampleRenderer

A Renderer implementation whose track type is TRACK_TYPE_NONE and does not consume data from its SampleStream.

TextRenderer

A Renderer for text.


A target for messages.

Summary

Public functions

Unit
handleMessage(@Renderer.MessageType messageType: Int, message: Any?)

Handles a message delivered to the target.

Public functions

handleMessage

fun handleMessage(@Renderer.MessageType messageType: Int, message: Any?): Unit

Handles a message delivered to the target.

Parameters
@Renderer.MessageType messageType: Int

The message type.

message: Any?

The message payload.

Throws
androidx.media3.exoplayer.ExoPlaybackException

If an error occurred whilst handling the message. Should only be thrown by targets that handle messages on the playback thread.