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
maximsuzuki
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?

 

Thanks.

Please use plain text.
BlackBerry Development Advisor
oros
Posts: 1,557
Registered: ‎04-12-2010
My Device: BlackBerry Z10

Re: Audio Buffering API in BB OSv7

Hi maximsuzuki,

This API can be accessed via StreamingBufferControl.setBufferTime(int millis):
http://www.blackberry.com/developers/docs/7.0.0api/net/rim/device/api/media/control/StreamingBufferC...

This control can be retrieved via Player.getControl("net.rim.device.api.media.control.StreamingBufferControl"):
http://www.blackberry.com/developers/docs/7.0.0api/javax/microedition/media/Controllable.html#getCon...

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.
Please use plain text.