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 void
audioCodecError(Exception audioCodecError)
void
audioSinkError(Exception audioSinkError)
void
decoderInitialized(String decoderName, long initializedTimestampMs, long initializationDurationMs)
void
decoderReleased(String decoderName)
void
disabled(DecoderCounters counters)
void
enabled(DecoderCounters decoderCounters)
void
inputFormatChanged(Format format, DecoderReuseEvaluation decoderReuseEvaluation)
void
positionAdvancing(long playoutStartSystemTimeMs)
void
skipSilenceEnabledChanged(boolean skipSilenceEnabled)
void
underrun(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)
-
-