Added in API level 31

AudioProfile


class AudioProfile
kotlin.Any
   ↳ android.media.EncoderProfiles.AudioProfile

Configuration for an audio encoder.

Summary

Public methods
Int

The target audio output bitrate in bits per second

Int

The number of audio channels used for the audio track

Int

The audio encoder being used for the audio track.

String

The media type of the audio encoder being used for the video track

Int

The audio encoder profile being used for the audio track

Int

The audio sampling rate used for the audio track

Public methods

getBitrate

Added in API level 31
fun getBitrate(): Int

The target audio output bitrate in bits per second

getChannels

Added in API level 31
fun getChannels(): Int

The number of audio channels used for the audio track

getMediaType

Added in API level 31
fun getMediaType(): String

The media type of the audio encoder being used for the video track

Return
String This value cannot be null.

getProfile

Added in API level 31
fun getProfile(): Int

The audio encoder profile being used for the audio track

This value is negative if there is no profile defined for the audio codec.

getSampleRate

Added in API level 31
fun getSampleRate(): Int

The audio sampling rate used for the audio track