Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 17
Registered: ‎04-16-2011
My Device: 7100T
My Carrier: BB

How to play two sounds in one time

I have 2 Player instnace. One need to play background sound, second to play other sound.


Background sound play in loop 



try {


} catch (MediaException e) {




When I  try to play bg play sound and then play other play sound, bg sound is stop (9860) and in some simulator or device (9800 torch) both sound is playing but sound quality is deteriorating.


how to play two sound simultaneously


please help thanks


Posts: 285
Registered: ‎08-06-2010
My Device: Z10

Re: How to play two sounds in one time

Many BB phones do not support simultaneous playing of sounds.


You can run a check to see if the device does support sound mixing with the following


boolean canPlaySimulatenousSounds = System.getProperty("supports.mixing").equals("true"));

Follow me on twitter @RileyGB - https://twitter.com/RileyGB
View my BB10 OpenSource projects - https://github.com/RileyGB/BlackBerry10-Samples