01-28-2013 08:01 AM
Hi,
I will work on an Internet radio application in which I will need to stream two or more streams simultaneously. I accomplished that in prior BB versions and in Android version. I'd like to know whether that is possible in BB10 devices. Do they have multiple audio channels?
Best Regards,
Burak
01-28-2013 04:18 PM
This involves multiple sounds.
https://github.com/blackberry/Presentations/tree/m
While the sounds are not "streaming" per se, this should get you started.
01-28-2013 04:36 PM
From my experience, BB10 plays multiple audio sources without any issues at all.
01-28-2013 10:22 PM
01-28-2013 10:26 PM
jasoncheung wrote:
Playing multiple audio files is very simple. Basic way is to create multiple MediaPlayer objects and play them at the same time.
I would weigh up your options before doing this. I tried this initially - and it consumes a lot of resources (understandably, if you're adding more MediaPlayer objects). If you do it the C++ way (see the link I posted to a sample which has concurrent, simultaneous sounds, done with half a dozen lines of C++), then it's not as resource intensive.
01-29-2013 04:15 PM
One thing to note with the BBJAM class is that it does not play mp3s. Furthermore, you cannot have mp3s in your sound directory or it will fail as well (due to pre-caching).
02-05-2013 05:45 AM
Thanks all...
RileyGB, did you try to stream multiple audio streams via HTTP connection, or just play two local audio files simultaneously?