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 Developer
Posts: 24
Registered: ‎07-20-2009
My Device: Not Specified

Missing Control objects for custom DataSource

If I create a custom data source class like

public class CustomDataSource extends DataSource

I also have to define
getControl(String controlType)
Control[] getControls()

- methods that are a part of interface Controllable.

How shall I implement these methods properly in order to get e.g. volume control, audio path for my custom player?
I also tried to extend ByteArrayInputStreamDataSource, which came with OS 4.7, but then there's only one control: net.rim.device.internal.media.StreamingMediaPlayer, which is internal and therefore unusable...
Posts: 27
Registered: ‎02-12-2010
My Device: Torch 9800
My Carrier: Globe/Unlocked AT&T

Re: Missing Control objects for custom DataSource

I'm also having the same issue. I need to get other instances of Control, like FramePositioningControl.


I also seems like the methods getControl(String) and getControls() are not called when I called the Player.getControl(String) and Player.getControls() method, respectively.

Posts: 76
Registered: ‎07-11-2008
My Device: Z10
My Carrier: SingTel

Re: Missing Control objects for custom DataSource

[ Edited ]

FramePositionsControl is not supported. 


Take a look at the StreamingPlayer sample here for implementing the getControl method: http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255

BlackBerry Development Advisor