Android Question How to play two mp3 files at the same time?

abilio486software

Active Member
Licensed User
Hello

Could someone give me a tip about how to play two MP3 songs at the same time, one on top of the other, as if it were a mix table?

Is there a B4A library for this purpose, or an inline java to do it?

Thanks
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User
In my music app I created an array of media players (my case 2) and keep track which one is actively playing
When the active one gets within 7 seconds (user defined amount) I start the second media player playing (which was loaded when the 1st one started)
And then keep bouncing from one to another

Both media players playing at the same time seems to work fine?

Most songs have some type of fade out at the end and you can hear the 2nd player playing as the first is ending.

This works for me. Not sure it is the right way.
 
Upvote 0
Top