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

New Contributor
Posts: 4
Registered: ‎03-09-2011
My Device: Not Specified
Accepted Solution

Audio Buffering API in BB OSv7

The marketing info in the developer site for SDK v7 Beta claims that:


  • Audio Buffering API: allow your app to set the buffer size (in milliseconds) before playback starts

How do we control this?



Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Audio Buffering API in BB OSv7

Hi maximsuzuki,

This API can be accessed via StreamingBufferControl.setBufferTime(int millis):

This control can be retrieved via Player.getControl("net.rim.device.api.media.control.StreamingBufferControl"):

In this case, it is important to use the fully qualified name of the package as the getControl() method assumes javax.microedition.media.control if one is not specified.


Erik Oros

BlackBerry Development Advisor

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.