Monday, April 6, 2009

Android API : Media Player

Package Android.media

Interfaces
MediaPlayer.OnBufferingUpdateListener
Interface definition of a callback to be invoked indicating buffering status of a media resource being streamed over the network.
MediaPlayer.OnCompletionListener
Interface definition for a callback to be invoked when playback of a media file has completed.
MediaPlayer.OnErrorListener
Interface 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.OnPreparedListener
Interface definition for a callback to be invoked when the media file is ready for playback.
MediaPlayer.OnSeekCompleteListener
Interface definition of a callback to be invoked indicating the completion of a seek operation.
MediaScannerConnection.MediaScannerConnectionClient
An 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.

Classes
AsyncPlayer
Plays 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.
AudioManager
AudioManager provides access to volume and ringer mode control.
FaceDetector
Identifies the faces of people in a Bitmap graphic object.
FaceDetector.Face
A Face contains all the information identifying the location of a face in a bitmap.
MediaPlayer
Used to play audio and video files and streams.
MediaRecorder
Used to record audio and video.
MediaRecorder.AudioEncoder
Defines the audio encoding.
MediaRecorder.AudioSource
Defines the audio source.
MediaRecorder.OutputFormat
Defines the output format.
MediaScannerConnection
MediaScannerConnection provides a way for applications to pass a newly created or downloaded media file to the media scanner service.
Ringtone
Ringtone provides a quick method for playing a ringtone, notification, or other similar types of sounds.
RingtoneManager
RingtoneManager provides access to ringtones, notification, and other types of sounds.
SoundPool

ToneGenerator
This 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).

2 comments:

  1. Hi to all
    How to store the Metadata of songs which was stored in SDCard. The metadata means: Artist,Title,Album,Genre,Thumbnail....... related to song.
    Us there any possible way to store that data in Databse?

    ReplyDelete
  2. Please do update the domain of the links listed here
    from "www.blogger.com" to "developer.android.com"

    ReplyDelete