|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AudioFormatControl
AudioFormatControl controls the setting of the audio format.
AudioFormatControl serves two purposes
Set the audio codec in an audio-video format
Set the format for audio only content type. For example, a Player to play and
record audio from a microphone provides an AudioFormatControl instead of
a ContainerFormatControl to specify the format,
in case setting of the format is supported in the first place.
For example, setting the recording format to 128 kbps MP3 is done as follows: // initializing the Player and RecordControl omitted AudioFormatControl format = (AudioFormatControl)player.getControl("AudioFormatControl"); format.setFormat("audio/mpeg"); format.setParameter(FormatControl.PARAM_VERSION_TYPE, "MPEG1_layer_3"); format.setParameter(FormatControl.PARAM_BITRATE, 128000);
| Field Summary |
|---|
| Fields inherited from interface javax.microedition.amms.control.FormatControl |
|---|
METADATA_NOT_SUPPORTED, METADATA_SUPPORTED_FIXED_KEYS, METADATA_SUPPORTED_FREE_KEYS, PARAM_BITRATE, PARAM_BITRATE_TYPE, PARAM_FRAMERATE, PARAM_QUALITY, PARAM_SAMPLERATE, PARAM_VERSION_TYPE |
| Method Summary |
|---|
| Methods inherited from interface javax.microedition.amms.control.FormatControl |
|---|
getEstimatedBitRate, getFormat, getIntParameterValue, getMetadataOverride, getMetadataSupportMode, getStrParameterValue, getSupportedFormats, getSupportedIntParameterRange, getSupportedIntParameters, getSupportedMetadataKeys, getSupportedStrParameterValues, getSupportedStrParameters, setFormat, setMetadata, setMetadataOverride, setParameter, setParameter |
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal