# CodecUtil

open class CodecUtil

Created by pedro on 14/02/18.

## Constructors

CodecUtil
Link copied to clipboard
constructor()

## Types

CodecType
Link copied to clipboard
enum CodecType
CodecTypeError
Link copied to clipboard
enum CodecTypeError

## Properties

AAC_MIME
Link copied to clipboard
val AAC_MIME: String = "audio/mp4a-latm"
AV1_MIME
Link copied to clipboard
val AV1_MIME: String = "video/av01"
G711_MIME
Link copied to clipboard
val G711_MIME: String = "audio/g711-alaw"
H264_MIME
Link copied to clipboard
val H264_MIME: String = "video/avc"
H265_MIME
Link copied to clipboard
val H265_MIME: String = "video/hevc"
OPUS_MIME
Link copied to clipboard
val OPUS_MIME: String = "audio/opus"
VORBIS_MIME
Link copied to clipboard
val VORBIS_MIME: String = "audio/ogg"

## Functions

getAllCodecs
Link copied to clipboard
open fun getAllCodecs(filterBroken: Boolean): List<MediaCodecInfo>
getAllDecoders
Link copied to clipboard
open fun getAllDecoders(mime: String): List<MediaCodecInfo>
choose decoder by mime.
open fun getAllDecoders(mime: String, hardwarePriority: Boolean): List<MediaCodecInfo>
getAllEncoders
Link copied to clipboard
open fun getAllEncoders(mime: String): List<MediaCodecInfo>
choose encoder by mime.
open fun getAllEncoders(mime: String, hardwarePriority: Boolean): List<MediaCodecInfo>
open fun getAllEncoders(mime: String, hardwarePriority: Boolean, cbrPriority: Boolean): List<MediaCodecInfo>
getAllEncodersCbrPriority
Link copied to clipboard
open fun getAllEncodersCbrPriority(mime: String): List<MediaCodecInfo>
getAllHardwareDecoders
Link copied to clipboard
open fun getAllHardwareDecoders(mime: String): List<MediaCodecInfo>
getAllHardwareEncoders
Link copied to clipboard
open fun getAllHardwareEncoders(mime: String): List<MediaCodecInfo>
open fun getAllHardwareEncoders(mime: String, cbrPriority: Boolean): List<MediaCodecInfo>
getAllSoftwareDecoders
Link copied to clipboard
open fun getAllSoftwareDecoders(mime: String): List<MediaCodecInfo>
getAllSoftwareEncoders
Link copied to clipboard
open fun getAllSoftwareEncoders(mime: String): List<MediaCodecInfo>
open fun getAllSoftwareEncoders(mime: String, cbrPriority: Boolean): List<MediaCodecInfo>
isCBRModeSupported
Link copied to clipboard
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
open fun isCBRModeSupported(mediaCodecInfo: MediaCodecInfo, mime: String): Boolean
showAllCodecsInfo
Link copied to clipboard
open fun showAllCodecsInfo(): List<String>