Search code examples
androidandroid-mediaplayer

Play two mp3 song at the same time


I want to play two song (mp3) at the same time (one is karaoke file and one is the record audio by user). Can I use the MediaPlayer to do this? If so, is that right if I create 2 object of MediaPlayer and setDataSource for two file and play it?

Thanks!


Solution

  • Yes, According to me that's all fine using two MediaPlayer objects and do that, In my experience of doing same there has been no any problems for sound play or any memory issues,that work like charm.