Class CodecUtil


  • public class CodecUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CodecUtil()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean deviceHasDolbyAtmosSupport()
      Evaluates if the current device supports Dolby Atmos by trying to match ac3, eac3 or eac3-joc in the supported types of each codec information.
      java.util.ArrayList<android.media.MediaCodecInfo> getMediaCodecInfoList()
      Gets the device codecs information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EC3_CODEC_PATTERN_STRING

        public static final java.lang.String EC3_CODEC_PATTERN_STRING
        See Also:
        Constant Field Values
      • ATMOS_AUDIO_CODEC_PATTERN

        public static final java.lang.String ATMOS_AUDIO_CODEC_PATTERN
        See Also:
        Constant Field Values
    • Constructor Detail

      • CodecUtil

        public CodecUtil()
    • Method Detail

      • getMediaCodecInfoList

        public java.util.ArrayList<android.media.MediaCodecInfo> getMediaCodecInfoList()
        Gets the device codecs information.
        Returns:
        - An ArrayList with the MediaCodecInfo of available codecs.
      • deviceHasDolbyAtmosSupport

        public boolean deviceHasDolbyAtmosSupport()
        Evaluates if the current device supports Dolby Atmos by trying to match ac3, eac3 or eac3-joc in the supported types of each codec information.
        Returns:
        - True if the current device supports Dolby Atmos.