Play two mp3 song at the same time

回眸只為那壹抹淺笑 提交于 2019-12-11 08:36:46

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/11025515/play-two-mp3-song-at-the-same-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!