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 |
getCodec() 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
fun getBitrate(): Int
The target audio output bitrate in bits per second
getChannels
fun getChannels(): Int
The number of audio channels used for the audio track
getCodec
fun getCodec(): Int
The audio encoder being used for the audio track.
getMediaType
fun getMediaType(): String
The media type of the audio encoder being used for the video track
Return | |
---|---|
String |
This value cannot be null . |
See Also
getProfile
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
fun getSampleRate(): Int
The audio sampling rate used for the audio track