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
New Contributor
Posts: 4
Registered: ‎04-06-2011
My Device: 9700
My Carrier: AT&T

Re: OS6 hidden player buffer?

Do not flush the data already in the player. It will create more problem than it solved, and yes, it will cost the player to stop and start buffering again. Another trick is to through out packets than has no cadence.

Developer
Posts: 101
Registered: ‎12-10-2009
My Device: styile 9670
My Carrier: SingTel

Re: OS6 hidden player buffer?

rahow to flush audio player.? is that really works on device?

Mobile Application Advisor
Developer
Posts: 101
Registered: ‎12-10-2009
My Device: styile 9670
My Carrier: SingTel

Re: OS6 hidden player buffer?

streaming buffer control does not exist in os 6. i have tried using all os 6. but i have not foud this control.

Mobile Application Advisor
Highlighted
Developer
Posts: 101
Registered: ‎12-10-2009
My Device: styile 9670
My Carrier: SingTel

Re: OS6 hidden player buffer?

have anyone tried using upsampling?does it really works?

Mobile Application Advisor
Developer
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: OS6 hidden player buffer?

No. Upsamling doesn't help nor does flushing for os 6.

----------------------------------------------------------------------
Press the button to give kudos if I helped you Smiley Happy
Developer
Posts: 101
Registered: ‎12-10-2009
My Device: styile 9670
My Carrier: SingTel

Re: OS6 hidden player buffer?

have you converted 8khz data to 44 k or 48k hz data and then you have push that data? or you just have tried by changing the header from sampling rate 8khz to 44khz ?

Mobile Application Advisor
Developer
Posts: 709
Registered: ‎09-10-2009
My Device: 8520, 8900, 9000, 9300, 9650, 9700, 9780, 9800, 9810, 9900, 9930
My Carrier: Verizon

Re: OS6 hidden player buffer?

 


dynamicdhaka wrote:

streaming buffer control does not exist in os 6. i have tried using all os 6. but i have not foud this control.


 

Yes. It does. It is there all along.

 

BTW. fgVoIP deleted their thread I reference in an earlier post.

 

 

Developer
Posts: 101
Registered: ‎12-10-2009
My Device: styile 9670
My Carrier: SingTel

Re: OS6 hidden player buffer?

what do you mean by this? Yes. It does. It is there all along.? do you mean StreamingBufferControl exist in os 6? have you tried to create oject of StreamingBufferControl? i always get it null ...

Mobile Application Advisor
Developer
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: OS6 hidden player buffer?

It is in the API docs hence it exists. http://www.blackberry.com/developers/docs/6.0.0api/

 

If you are getting null it is probably because you are getting it wrong.

----------------------------------------------------------------------
Press the button to give kudos if I helped you Smiley Happy
Developer
Posts: 101
Registered: ‎12-10-2009
My Device: styile 9670
My Carrier: SingTel

Re: OS6 hidden player buffer?

       iAudioPlayer.addPlayerListener(this);
        iAudioPlayer.realize();
        iAudioPlayer.prefetch();
        iStreamingBufferControl= (StreamingBufferControl)iAudioPlayer.getControl("net.rim.device.api.media.control.StreamingBufferControl");

...this is the code which i am using to create the object of StreamingBufferControl

 

But i am getting null object. i have watch the  6.0 api. they have mentioned it but practially i am not getting it. Also,i have extract the net_rim_api.jar and i have not found any  .class file for StreamingBufferControl ...have you tried any more?

 

 

 

Mobile Application Advisor