Class AudioRendererEventListener.EventDispatcher
- java.lang.Object
-
- com.google.android.exoplayer2.audio.AudioRendererEventListener.EventDispatcher
-
- Enclosing interface:
- AudioRendererEventListener
public static final class AudioRendererEventListener.EventDispatcher extends Object
Dispatches events to anAudioRendererEventListener.
-
-
Constructor Summary
Constructors Constructor Description EventDispatcher(Handler handler, AudioRendererEventListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaudioCodecError(Exception audioCodecError)voidaudioSinkError(Exception audioSinkError)voiddecoderInitialized(String decoderName, long initializedTimestampMs, long initializationDurationMs)voiddecoderReleased(String decoderName)voiddisabled(DecoderCounters counters)voidenabled(DecoderCounters decoderCounters)voidinputFormatChanged(Format format, DecoderReuseEvaluation decoderReuseEvaluation)voidpositionAdvancing(long playoutStartSystemTimeMs)voidskipSilenceEnabledChanged(boolean skipSilenceEnabled)voidunderrun(int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs)
-
-
-
Constructor Detail
-
EventDispatcher
public EventDispatcher(@Nullable Handler handler, @Nullable 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.
-
-
Method Detail
-
enabled
public void enabled(DecoderCounters decoderCounters)
-
decoderInitialized
public void decoderInitialized(String decoderName, long initializedTimestampMs, long initializationDurationMs)
-
inputFormatChanged
public void inputFormatChanged(Format format, @Nullable DecoderReuseEvaluation decoderReuseEvaluation)
-
positionAdvancing
public void positionAdvancing(long playoutStartSystemTimeMs)
-
underrun
public void underrun(int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs)
-
decoderReleased
public void decoderReleased(String decoderName)
-
disabled
public void disabled(DecoderCounters counters)
-
skipSilenceEnabledChanged
public void skipSilenceEnabledChanged(boolean skipSilenceEnabled)
-
audioSinkError
public void audioSinkError(Exception audioSinkError)
-
audioCodecError
public void audioCodecError(Exception audioCodecError)
-
-