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

Running Audio Code doesn't launch Media, but it runs..

Hi All,

 

I am trying to run an Audio(.mp3) file in BB 9000 Simulator from remote. I used the following code and it works fine. i.e. plays the audio file.

 

player = Manager.createPlayer(URL);
player.realize();
player.prefetch();
player.start();  

 

But why doesn't it launch the built-in music media app and run in that? Because when i execute this code, it just starts the audio file as background running. I want my app(this code) should launch built-in Audio application(may be Media) and then run this audio file there, so that i can do stop or start or volume control etc, things can be done.

 

Can anyone come across, share with me please?

 

Clave.

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Running Audio Code doesn't launch Media, but it runs..

Invoke the browser with media ULR it will launch the device player.

Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 93
Registered: ‎08-17-2009
My Device: Not Specified

Re: Running Audio Code doesn't launch Media, but it runs..

Thank you.