public static interface MediaCodecTrackRenderer.EventListener
MediaCodecTrackRenderer
events.Modifier and Type | Method and Description |
---|---|
void |
onCryptoError(MediaCodec.CryptoException e)
Invoked when a decoder operation raises a
MediaCodec.CryptoException . |
void |
onDecoderInitializationError(MediaCodecTrackRenderer.DecoderInitializationException e)
Invoked when a decoder fails to initialize.
|
void |
onDecoderInitialized(String decoderName,
long elapsedRealtimeMs,
long initializationDurationMs)
Invoked when a decoder is successfully created.
|
void onDecoderInitializationError(MediaCodecTrackRenderer.DecoderInitializationException e)
e
- The corresponding exception.void onCryptoError(MediaCodec.CryptoException e)
MediaCodec.CryptoException
.e
- The corresponding exception.void onDecoderInitialized(String decoderName, long elapsedRealtimeMs, long initializationDurationMs)
decoderName
- The decoder that was configured and created.elapsedRealtimeMs
- elapsedRealtime
timestamp of when the initialization
finished.initializationDurationMs
- Amount of time taken to initialize the decoder.