public final class

AudioRendererEventListener.EventDispatcher

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.audio.AudioRendererEventListener.EventDispatcher

Overview

Dispatches events to an AudioRendererEventListener.

Summary

Constructors
publicEventDispatcher(Handler handler, AudioRendererEventListener listener)

Methods
public voidaudioCodecError(java.lang.Exception audioCodecError)

Invokes AudioRendererEventListener.onAudioCodecError(Exception).

public voidaudioSinkError(java.lang.Exception audioSinkError)

Invokes AudioRendererEventListener.onAudioSinkError(Exception).

public voidaudioTrackInitialized(AudioSink.AudioTrackConfig audioTrackConfig)

Invokes AudioRendererEventListener.onAudioTrackInitialized(AudioSink.AudioTrackConfig).

public voidaudioTrackReleased(AudioSink.AudioTrackConfig audioTrackConfig)

Invokes AudioRendererEventListener.onAudioTrackReleased(AudioSink.AudioTrackConfig).

public voiddecoderInitialized(java.lang.String decoderName, long initializedTimestampMs, long initializationDurationMs)

Invokes AudioRendererEventListener.onAudioDecoderInitialized(String, long, long).

public voiddecoderReleased(java.lang.String decoderName)

Invokes AudioRendererEventListener.onAudioDecoderReleased(String).

public voiddisabled(DecoderCounters counters)

Invokes AudioRendererEventListener.onAudioDisabled(DecoderCounters).

public voidenabled(DecoderCounters decoderCounters)

Invokes AudioRendererEventListener.onAudioEnabled(DecoderCounters).

public voidinputFormatChanged(Format format, DecoderReuseEvaluation decoderReuseEvaluation)

Invokes AudioRendererEventListener.onAudioInputFormatChanged(Format, DecoderReuseEvaluation).

public voidpositionAdvancing(long playoutStartSystemTimeMs)

Invokes AudioRendererEventListener.onAudioPositionAdvancing(long).

public voidskipSilenceEnabledChanged(boolean skipSilenceEnabled)

Invokes AudioRendererEventListener.onSkipSilenceEnabledChanged(boolean).

public voidunderrun(int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs)

Invokes AudioRendererEventListener.onAudioUnderrun(int, long, long).

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public EventDispatcher(Handler handler, AudioRendererEventListener listener)

Parameters:

handler: A handler for dispatching events, or null if events should not be dispatched.
listener: The listener to which events should be dispatched, or null if events should not be dispatched.

Methods

public void enabled(DecoderCounters decoderCounters)

Invokes AudioRendererEventListener.onAudioEnabled(DecoderCounters).

public void decoderInitialized(java.lang.String decoderName, long initializedTimestampMs, long initializationDurationMs)

Invokes AudioRendererEventListener.onAudioDecoderInitialized(String, long, long).

public void inputFormatChanged(Format format, DecoderReuseEvaluation decoderReuseEvaluation)

Invokes AudioRendererEventListener.onAudioInputFormatChanged(Format, DecoderReuseEvaluation).

public void positionAdvancing(long playoutStartSystemTimeMs)

Invokes AudioRendererEventListener.onAudioPositionAdvancing(long).

public void underrun(int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs)

Invokes AudioRendererEventListener.onAudioUnderrun(int, long, long).

public void decoderReleased(java.lang.String decoderName)

Invokes AudioRendererEventListener.onAudioDecoderReleased(String).

public void disabled(DecoderCounters counters)

Invokes AudioRendererEventListener.onAudioDisabled(DecoderCounters).

public void skipSilenceEnabledChanged(boolean skipSilenceEnabled)

Invokes AudioRendererEventListener.onSkipSilenceEnabledChanged(boolean).

public void audioSinkError(java.lang.Exception audioSinkError)

Invokes AudioRendererEventListener.onAudioSinkError(Exception).

public void audioCodecError(java.lang.Exception audioCodecError)

Invokes AudioRendererEventListener.onAudioCodecError(Exception).

public void audioTrackInitialized(AudioSink.AudioTrackConfig audioTrackConfig)

Invokes AudioRendererEventListener.onAudioTrackInitialized(AudioSink.AudioTrackConfig).

public void audioTrackReleased(AudioSink.AudioTrackConfig audioTrackConfig)

Invokes AudioRendererEventListener.onAudioTrackReleased(AudioSink.AudioTrackConfig).