rate When we pass audio files to be played, we have to make sure it gets processed in time to meet the deadlines Otherwise, when deadlines are missed, you can get silent sounds or weird ‘static’ sounds
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setDataSource(audioFilePath); mediaPlayer.prepare(); mediaPlayer.start(); or mediaPlayer.pause() or mediaPlayer.seekTo(); IDLE
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setDataSource(audioFilePath); mediaPlayer.prepare(); mediaPlayer.start(); or mediaPlayer.pause() or mediaPlayer.seekTo(); INITIALIZED
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setDataSource(audioFilePath); mediaPlayer.prepare(); mediaPlayer.start(); or mediaPlayer.pause() or mediaPlayer.seekTo(); PREPARED
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setDataSource(audioFilePath); mediaPlayer.prepare(); mediaPlayer.start(); or mediaPlayer.pause() or mediaPlayer.seekTo();
of samples from the APK that can be loaded into memory Able to manage number of audio streams IE : able to do sound mixing Can set priority when playing sound
Ability to update player along with application Fewer device specific issues across different versions of Android Ability to customize and extend the player
playing audio User goes into another media app that plays audio If not properly handled, both apps will now play their audio stream and nothing will be heard
back) are eagerly loaded into a SoundPool for low latency playback. All other sounds are played with the MediaPlayer Sounds can request to be played immediately