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 Developer
bb_dev
Posts: 11
Registered: ‎10-12-2008

StreamingBufferControl - Where it is Non NULL

Hello There,

 

I am trying to get the instance of  StreamingBufferControl from a Player which is instantiated by using input stream , and content type as x-wav but NULL is being returned.

 

Could someone point me in which situations  StreamingBufferControl's instance is returned non null

 

I am using below code fragment picked from Blackberry Media Guide:

 

StreamingBufferControl sbc = (StreamingBufferControl)sp.getControl("net.rim.device.api.media.control.StreamingBufferControl");
if(sbc != null) {
    sbc.flush();
}

Please use plain text.
New Developer
bb_dev
Posts: 11
Registered: ‎10-12-2008

Re: StreamingBufferControl - Where it is Non NULL

Do I need to provide my own implementation of Player to get the instance of StreamingBufferControl or Player doesn't have StreamingBufferControl when instantiated with InputDataStream ?

Please use plain text.