Can anybody explain me what's the difference between AudioManager
and MediaPlayer
in Android ? If I am correct, then AudioManager
can only play audio, while MediaPlayer
can play both audio and video. But I believe there must be more to this.
Thanks.
AudioManager doesn't play sound at all. It provides access to sound settings, but to play sounds easily, you should use MediaPlayer, SoundPool, or possibly AudioTrack.
From the docs:
AudioManager provides access to volume and ringer mode control.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With