views:

380

answers:

3

Can someone help me to buffer a mp3 file on a server using the Blackberry buffered pllayback demo app provided with the jde? I hav loaded it in the simulator. And my mds is started but I m unable to play the audio. There is no error but it doesnt play/load. The code looks all fine. Thanks

+1  A: 

This may help:

Blackberry Enterprise Server Limitations

By default, the BlackBerry Enterprise Server (BES) limits the response size of a single HTTP response to 128K. If you try to fetch anything bigger your application will receive a 413 (Request Entity Too Large) response code. To get around this you must use the BES management console to change the value of the Maximum number of kilobytes per connection field to a higher value, up to 1024K.

Note that this limit also applies to the MDS simulator, so you'll need to change the simulator's settings as well. Edit the mds\config\rimpublic.property file in your JDE installation directory and change the value of the IPPP.connection.MaxNumberOfKBytesToSend property to match the BES setting and then restart the simulator.

Also check if you using correct ip instead of localhost

In the end you might want to check file in Blackberry browser before open it in app, don't forget to enable streaming in browser settings.

Max Gontar
A: 

It seems that this code for some reason does not work at all on OS 5 and up.

The problem is related to the shared input stream which after 1 or 2 seconds always returns -1 and the code actually considers the file as downloaded or buffered, so it won't play.

I've tried finding another solution for this but it is still a bit numb.

Cheers,

Ernani

Ernani Joppert
A: 

I am having the same problem, it reads around 865 bytes and gives -1, did any one found a way out of this?

Thanks Dutt

Duttk