Package com.castlabs.utils

# Class Codecs

java.lang.Object
com.castlabs.utils.Codecs

public class Codecs extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final Map<String,String>`
  `CODEC_NAMES`
  `static final Map<String,String>`
  `DASH_CODEC_TO_EXOPLAYER_MIMETYPE`
  `static final Set<String>`
  `PLUGIN_DECODER_SUPPORT`
  `static final Set<String>`
  `UNSUPPORTED_AUDIO_CODECS`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Codecs()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory`
  `createAudioCodecAdapterFactory()`
  `static com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory`
  `createVideoCodecAdapterFactory()`
  `static String`
  `getCodecName(String codecs)`
  `static int`
  `getEncodingForMimeType(String mimeType)`
  `static boolean`
  `isAudioCodec(String codecs)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### CODEC_NAMES

    public static final Map<String,String> CODEC_NAMES

  - ### UNSUPPORTED_AUDIO_CODECS

    public static final Set<String> UNSUPPORTED_AUDIO_CODECS

  - ### PLUGIN_DECODER_SUPPORT

    public static final Set<String> PLUGIN_DECODER_SUPPORT

  - ### DASH_CODEC_TO_EXOPLAYER_MIMETYPE

    public static final Map<String,String> DASH_CODEC_TO_EXOPLAYER_MIMETYPE

- ## Constructor Details

  - ### Codecs

    public Codecs()

- ## Method Details

  - ### getCodecName

    public static String getCodecName(String codecs)

  - ### getEncodingForMimeType

    public static int getEncodingForMimeType(String mimeType)

  - ### isAudioCodec

    public static boolean isAudioCodec(String codecs)

  - ### createAudioCodecAdapterFactory

    public static com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory createAudioCodecAdapterFactory()

  - ### createVideoCodecAdapterFactory

    public static com.google.android.exoplayer2.mediacodec.MediaCodecAdapter.Factory createVideoCodecAdapterFactory()