Android — Multiple, Simultaneous Streaming Audio

Home - Android — Multiple, Simultaneous Streaming Audio

Girly Saputri Staff asked 3 years ago

I currently have the need to implement an application on the Android device that can open up live audio streams and play them back to the user. This is not a big deal, and I have successfully set up a streaming server and got it working for one file. My question is, however, how do I stream and play multiple audio files at once?
When I open up more than one stream (using MediaPlayer) and prepare and play each file, I only hear the audio from one file. I’m not sure this is currently possible, but I am hoping it is.
I looked into using SoundPool, but it seems to only be for local media and I MUST have this streaming as it is important for plaback speed (no wait time, etc.).
Any help or insight is greatly appreciated! Thanks in advance!

Your Answer