Package com.castlabs.android.player

# Interface MediaTrackEventListener

All Known Implementing Classes:
  `AudioTrackListener`, `VideoTrackListener`

public interface MediaTrackEventListener
Interface for receiving notifications about media track events. This interface provides callbacks for decoder initialization errors and crypto errors.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onCryptoError(MediaCodec.CryptoException e)`
  Invoked when a decoder operation raises a `DecryptionException`.
  `void`
  `onDecoderInitializationError(com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException e)`
  Invoked when a decoder fails to initialize.

- ## Method Details

  - ### onDecoderInitializationError

    void onDecoderInitializationError(com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.DecoderInitializationException e)
    Invoked when a decoder fails to initialize.
    Parameters:
      `e` - The corresponding exception.

  - ### onCryptoError

    void onCryptoError(MediaCodec.CryptoException e)
    Invoked when a decoder operation raises a `DecryptionException`.
    Parameters:
      `e` - The corresponding exception.