09-23-2009 11:44 AM
I want to be able to play audio in blackberry storm by changing the output buffer in real time, as it was a stream (radio stream for example).
So far i have a byte array and then play it with javax.microedition.media.Manager.createPlayer. But this way i can't change (update) that byte array once i have created the player.
Is there a way to play sound by passing out an array of bytes/floats every second for example ? simulate a radio stream for example?
Can it be done using native blackberry API or do i have to go J2ME ?
thanks in advance
09-24-2009 07:06 AM - edited 09-24-2009 07:08 AM
tkz, but i doesn't help me out much, in other words what i want to do is this :
- Create a player with an output buffer
- Update that buffer(not over the internet) in real time, let's say every second
But i don't want to create a new player every time and i can't have any type of empty sound between the updates (the sound has to be continous).
What i wanted to know is if it's possible to update a buffer so the player i created plays continous as i modify my buffer in real time.
I've read in other forum that ' Both the mmapi player and rim mediaplayer require the entire stream to be downloaded before allowing you to start playing it. ' is it true ?
09-24-2009 07:12 AM
09-30-2009 03:14 AM
I have implemented player with custom data source. It works fine for few seconds , but then after readfunction is not called.
I have checked player state , but it's in "STARTED" state.
So have you solved this problem ???
I can play only 10-12 seconds audio , then player stops without any notification.
Let me know if anyone have solution. Please reply.