I have a question about playing/pausing multiple audio files in android. Our application loads audio files from the server using restful api. In the api there will have link to access the audio files (like http://www.common.com/folder/folder1/file1.mp4). Our application will list the name of the audio files in the list view in an android activity. Once a user taps on file1 then the file1 start play. And when user taps on another file, the file1 pause the playing and start playing for the tapped file. This should happen for all file.
Our doubt is, Do we need to use multiple instance of the media player for playing the different audio files. Like new MediaPlayer() object for each file? Can we handle this situation with a single instance of MediaPlayer? Does SoundPool helps in this situation?