Since: API Level 1
package

android.media

Classes | Description

Provides classes that manage various media interfaces in audio and video.

more...

Interfaces

AudioManager.OnAudioFocusChangeListenerInterface definition for a callback to be invoked when the audio focus of the system is updated. 
AudioRecord.OnRecordPositionUpdateListenerInterface definition for a callback to be invoked when an AudioRecord has reached a notification marker set by setNotificationMarkerPosition(int) or for periodic updates on the progress of the record head, as set by setPositionNotificationPeriod(int)
AudioTrack.OnPlaybackPositionUpdateListenerInterface definition for a callback to be invoked when the playback head position of an AudioTrack has reached a notification marker or has increased by a certain period. 
JetPlayer.OnJetEventListenerHandles the notification when the JET engine generates an event. 
MediaPlayer.OnBufferingUpdateListenerInterface definition of a callback to be invoked indicating buffering status of a media resource being streamed over the network. 
MediaPlayer.OnCompletionListenerInterface definition for a callback to be invoked when playback of a media source has completed. 
MediaPlayer.OnErrorListenerInterface definition of a callback to be invoked when there has been an error during an asynchronous operation (other errors will throw exceptions at method call time). 
MediaPlayer.OnInfoListenerInterface definition of a callback to be invoked to communicate some info and/or warning about the media or its playback. 
MediaPlayer.OnPreparedListenerInterface definition for a callback to be invoked when the media source is ready for playback. 
MediaPlayer.OnSeekCompleteListenerInterface definition of a callback to be invoked indicating the completion of a seek operation. 
MediaPlayer.OnVideoSizeChangedListenerInterface definition of a callback to be invoked when the video size is first known or updated  
MediaRecorder.OnErrorListenerInterface definition for a callback to be invoked when an error occurs while recording. 
MediaRecorder.OnInfoListenerInterface definition for a callback to be invoked when an error occurs while recording. 
MediaScannerConnection.MediaScannerConnectionClientAn interface for notifying clients of MediaScannerConnection when a connection to the MediaScanner service has been established and when the scanning of a file has completed. 
MediaScannerConnection.OnScanCompletedListenerInterface for notifying clients of the result of scanning a requested media file. 
SoundPool.OnLoadCompleteListenerInterface definition for a callback to be invoked when all the sounds are loaded. 

Classes

AsyncPlayerPlays a series of audio URIs, but does all the hard work on another thread so that any slowness with preparing or loading doesn't block the calling thread. 
AudioFormatThe AudioFormat class is used to access a number of audio format and channel configuration constants. 
AudioManagerAudioManager provides access to volume and ringer mode control. 
AudioRecordThe AudioRecord class manages the audio resources for Java applications to record audio from the audio input hardware of the platform. 
AudioTrackThe AudioTrack class manages and plays a single audio resource for Java applications. 
CamcorderProfileThe CamcorderProfile class is used to retrieve the predefined camcorder profile settings for camcorder applications. 
CameraProfileThe CameraProfile class is used to retrieve the pre-defined still image capture (jpeg) quality levels (0-100) used for low, medium, and high quality settings in the Camera application. 
ExifInterfaceThis is a class for reading and writing Exif tags in a JPEG file. 
FaceDetectorIdentifies the faces of people in a Bitmap graphic object. 
FaceDetector.FaceA Face contains all the information identifying the location of a face in a bitmap. 
JetPlayerJetPlayer provides access to JET content playback and control. 
MediaPlayerMediaPlayer class can be used to control playback of audio/video files and streams. 
MediaRecorderUsed to record audio and video. 
MediaRecorder.AudioEncoderDefines the audio encoding. 
MediaRecorder.AudioSourceDefines the audio source. 
MediaRecorder.OutputFormatDefines the output format. 
MediaRecorder.VideoEncoderDefines the video encoding. 
MediaRecorder.VideoSourceDefines the video source. 
MediaScannerConnectionMediaScannerConnection provides a way for applications to pass a newly created or downloaded media file to the media scanner service. 
RingtoneRingtone provides a quick method for playing a ringtone, notification, or other similar types of sounds. 
RingtoneManagerRingtoneManager provides access to ringtones, notification, and other types of sounds. 
SoundPoolThe SoundPool class manages and plays audio resources for applications. 
ThumbnailUtilsThumbnail generation routines for media provider. 
ToneGeneratorThis class provides methods to play DTMF tones (ITU-T Recommendation Q.23), call supervisory tones (3GPP TS 22.001, CEPT) and proprietary tones (3GPP TS 31.111).