Welcome!

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

Reply
Highlighted
Contributor
Posts: 49
Registered: ‎12-16-2010
My Device: 9700
My Carrier: Vodafone

[audio] Cannot play x-wav until a big amount of bytes are received

Hi

 

 I noticed that the player when initialized like this:
_player = Manager.createPlayer(stream, "audio/x-wav");

it does not start to play received audio on the stream immediately. It seems to start when its internal buffer is full and this happens at : (80.000 bytes = 5 sec) .
Is there a way to reduce this buffer size? Or is there a way to start the audio without needing to wait 5 second before playing?

 

The device where this happens is BB Storm on OS 6.

Contributor
Posts: 34
Registered: ‎10-26-2010
My Device: Not Specified

Re: [audio] Cannot play x-wav until a big amount of bytes are received

I have similar issue with AMR streaming....nobody can help us?

Contributor
Posts: 49
Registered: ‎12-16-2010
My Device: 9700
My Carrier: Vodafone

Re: [audio] Cannot play x-wav until a big amount of bytes are received

even using this sample http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255 and reducing the buffer to less than 80000 bytes I cannot achieve to hear sound until the buffer of the player contains 80000 bytes.

 

And I do receive the event initialBufferCompleted on the size I set...so this is a problem