Package com.brightcove.player.util
Class CodecUtil
- java.lang.Object
-
- com.brightcove.player.util.CodecUtil
-
public class CodecUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATMOS_AUDIO_CODEC_PATTERNstatic java.lang.StringEC3_CODEC_PATTERN_STRING
-
Constructor Summary
Constructors Constructor Description CodecUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandeviceHasDolbyAtmosSupport()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.
-
-
-
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
-
-
Method Detail
-
getMediaCodecInfoList
public java.util.ArrayList<android.media.MediaCodecInfo> getMediaCodecInfoList()
Gets the device codecs information.- Returns:
- - An ArrayList with the
MediaCodecInfoof 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.
-
-