Example usage for Java android.media MediaFormat fields, constructors, methods, implement or subclass
The text is from its open source code.
String | KEY_MIME A key describing the mime type of the MediaFormat. |
String | KEY_SAMPLE_RATE A key describing the sample rate of an audio format. |
String | KEY_CHANNEL_COUNT A key describing the number of channels in an audio format. |
String | KEY_WIDTH A key describing the width of the content in a video format. |
String | KEY_HEIGHT A key describing the height of the content in a video format. |
String | KEY_MAX_INPUT_SIZE A key describing the maximum size in bytes of a buffer of data described by this MediaFormat. |
String | KEY_BIT_RATE A key describing the average bitrate in bits/sec. |
String | KEY_COLOR_FORMAT A key describing the color format of the content in a video format. |
String | KEY_FRAME_RATE A key describing the frame rate of a video format in frames/sec. |
String | KEY_I_FRAME_INTERVAL A key describing the frequency of key frames expressed in seconds between key frames. |
String | KEY_REPEAT_PREVIOUS_FRAME_AFTER Applies only when configuring a video encoder in "surface-input" mode. |
String | KEY_DURATION A key describing the duration (in microseconds) of the content. |
String | KEY_IS_ADTS A key mapping to a value of 1 if the content is AAC audio and audio frames are prefixed with an ADTS header. |
String | KEY_CHANNEL_MASK A key describing the channel composition of audio content. |
String | KEY_AAC_PROFILE A key describing the AAC profile to be used (AAC audio formats only). |
String | KEY_AAC_SBR_MODE A key describing the AAC SBR mode to be used (AAC audio formats only). |
MediaFormat() Creates an empty MediaFormat |
boolean | containsKey(String name) Returns true iff a key of the given name exists in the format. |
MediaFormat | createSubtitleFormat(String mime, String language) Creates a minimal subtitle format. |
MediaFormat | createVideoFormat(String mime, int width, int height) Creates a minimal video format. |
ByteBuffer | getByteBuffer(String name) Returns the value of a ByteBuffer key. |
int | getInteger(String name) Returns the value of an integer key. |
long | getLong(String name) Returns the value of a long key. |
String | getString(String name) Returns the value of a string key. |
void | setByteBuffer(String name, ByteBuffer bytes) Sets the value of a ByteBuffer key. |
void | setInteger(String name, int value) Sets the value of an integer key. |
void | setLong(String name, long value) Sets the value of a long key. |
void | setString(String name, String value) Sets the value of a string key. |