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
Highlighted
Developer
Posts: 51
Registered: ‎10-21-2008
My Device: Bold 9000
My Carrier: Dialog

Audio Player Controls

Hi,

 

I am developing some software which let users to hear audio song streams. It works fine. Now I want to let users to play, stop and to control the volume( mute, capacity). Also I need to show them a progress bar with the time. Is there any way to do that with the player object? Or should I use some other way? Please let me know your ideas.

 

Here is my code.

 

--------------------------------------------------------------

try {
            
    Player p = Manager.createPlayer("http://www.mp3srilanka.com/files/Neela_Wickramasinghe_Master_Sir.mp3;deviceside=true");
    p.setLoopCount(1);
    p.start();
} catch (IOException ioe) {
} catch (MediaException me) { }

-------------------------------------------------------------

 

Thank you.

 

Prasad.