Added in API level 30

Format


class Format
kotlin.Any
   ↳ android.media.AudioMetadata.Format

A container class for AudioMetadata Format keys.

Summary

Properties
static AudioMetadata.Key<Boolean!>

A key representing the presence of Atmos in an E-AC3 stream.

static AudioMetadata.Key<Int!>

A key representing the audio encoding used for the stream.

static AudioMetadata.Key<Int!>

A key representing the bitrate of the encoded stream used in If the stream is variable bitrate, this is the average bitrate of the stream.

static AudioMetadata.Key<Int!>

A key representing the bit width of an element of decoded data.

static AudioMetadata.Key<Int!>

A key representing the audio channel mask of the stream.

static AudioMetadata.Key<String!>

A key representing the codec mime string.

static AudioMetadata.Key<Int!>

A key representing the audio presentation content classifier being rendered by a next generation audio decoder.

static AudioMetadata.Key<Int!>

A key representing the audio presentation id being decoded by a next generation audio decoder.

static AudioMetadata.Key<String!>

A key representing the audio presentation language being rendered by a next generation audio decoder.

static AudioMetadata.Key<Int!>

A key representing the audio program id being decoded by a next generation audio decoder.

static AudioMetadata.Key<Int!>

A key representing the audio sample rate in Hz of the stream.

Properties

KEY_ATMOS_PRESENT

Added in API level 30
static val KEY_ATMOS_PRESENT: AudioMetadata.Key<Boolean!>

A key representing the presence of Atmos in an E-AC3 stream. A Boolean value which is true if Atmos is present in an E-AC3 stream.

KEY_AUDIO_ENCODING

Added in API level 30
static val KEY_AUDIO_ENCODING: AudioMetadata.Key<Int!>

A key representing the audio encoding used for the stream. This is the same encoding used in AudioFormat#getEncoding(). An Integer value.

KEY_BIT_RATE

Added in API level 30
static val KEY_BIT_RATE: AudioMetadata.Key<Int!>

A key representing the bitrate of the encoded stream used in If the stream is variable bitrate, this is the average bitrate of the stream. The unit is bits per second. An Integer value.

KEY_BIT_WIDTH

Added in API level 30
static val KEY_BIT_WIDTH: AudioMetadata.Key<Int!>

A key representing the bit width of an element of decoded data. An Integer value.

KEY_CHANNEL_MASK

Added in API level 30
static val KEY_CHANNEL_MASK: AudioMetadata.Key<Int!>

A key representing the audio channel mask of the stream. An Integer value.

KEY_MIME

Added in API level 30
static val KEY_MIME: AudioMetadata.Key<String!>

A key representing the codec mime string. A String value.

KEY_PRESENTATION_ID

Added in API level 31
static val KEY_PRESENTATION_ID: AudioMetadata.Key<Int!>

A key representing the audio presentation id being decoded by a next generation audio decoder. An Integer value representing presentation id.

KEY_PRESENTATION_LANGUAGE

Added in API level 31
static val KEY_PRESENTATION_LANGUAGE: AudioMetadata.Key<String!>

A key representing the audio presentation language being rendered by a next generation audio decoder. A String value representing ISO 639-2 (three letter code).

KEY_PROGRAM_ID

Added in API level 31
static val KEY_PROGRAM_ID: AudioMetadata.Key<Int!>

A key representing the audio program id being decoded by a next generation audio decoder. An Integer value representing program id.

KEY_SAMPLE_RATE

Added in API level 30
static val KEY_SAMPLE_RATE: AudioMetadata.Key<Int!>

A key representing the audio sample rate in Hz of the stream. An Integer value.