Added in API level 30

AudioMetadata.Format


public static class AudioMetadata.Format
extends Object

java.lang.Object
   ↳ android.media.AudioMetadata.Format


A container class for AudioMetadata Format keys.

Summary

Fields

public static final Key<Boolean> KEY_ATMOS_PRESENT

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

public static final Key<Integer> KEY_AUDIO_ENCODING

A key representing the audio encoding used for the stream.

public static final Key<Integer> KEY_BIT_RATE

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.

public static final Key<Integer> KEY_BIT_WIDTH

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

public static final Key<Integer> KEY_CHANNEL_MASK

A key representing the audio channel mask of the stream.

public static final Key<String> KEY_MIME

A key representing the codec mime string.

public static final Key<Integer> KEY_PRESENTATION_CONTENT_CLASSIFIER

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

public static final Key<Integer> KEY_PRESENTATION_ID

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

public static final Key<String> KEY_PRESENTATION_LANGUAGE

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

public static final Key<Integer> KEY_PROGRAM_ID

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

public static final Key<Integer> KEY_SAMPLE_RATE

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

Inherited methods

Fields

KEY_ATMOS_PRESENT

Added in API level 30
public static final Key<Boolean> KEY_ATMOS_PRESENT

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
public static final Key<Integer> KEY_AUDIO_ENCODING

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
public static final Key<Integer> KEY_BIT_RATE

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
public static final Key<Integer> KEY_BIT_WIDTH

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

KEY_CHANNEL_MASK

Added in API level 30
public static final Key<Integer> KEY_CHANNEL_MASK

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

KEY_MIME

Added in API level 30
public static final Key<String> KEY_MIME

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

KEY_PRESENTATION_CONTENT_CLASSIFIER

Added in API level 31
public static final Key<Integer> KEY_PRESENTATION_CONTENT_CLASSIFIER

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

KEY_PRESENTATION_ID

Added in API level 31
public static final Key<Integer> KEY_PRESENTATION_ID

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
public static final Key<String> KEY_PRESENTATION_LANGUAGE

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
public static final Key<Integer> KEY_PROGRAM_ID

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
public static final Key<Integer> KEY_SAMPLE_RATE

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