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

Posts: 44
Registered: ‎07-15-2010
My Device: Not Specified
Accepted Solution

Player from remote source?



I am using a Player on my App to play some music. I am using Eclipse to develop it. So far I have imported the mp3 file into the App's resources and can play the music using this code:-


try {
Class cl = Class.forName("FurtherRemixedApp");
InputStream is = cl.getResourceAsStream("/mainaudio.mp3");

player = javax.microedition.media.Manager.createPlayer( is, "audio/mpeg" );

volumeControl = getVolumeControl(player);

if (volumeControl != null)

} catch (Exception e) {

 But now I need to play the mp3's from a website. I have tried something like:-


player = javax.microedition.media.Manager.createPlayer("http://www.furtherremixed.org/audio/android/sn.mp3;deviceside=true");

 But I get no sound and I guess the player doesn't start as I get errors.


I have been searching and reading for ages but have found no solutions. Any help would be appreciated.



Posts: 44
Registered: ‎07-15-2010
My Device: Not Specified

Re: Player from remote source?

OK, I found the problem. The website had .htaccess script to force mp3's to be downloaded rather than played. I tried the audio on another website and it works OK now.

New Contributor
Posts: 9
Registered: ‎08-30-2012
My Device: BlackBerry 5.0
My Carrier: Airtel India

Re: Player from remote source?

Can we play Online Video mobile using Player class.

Plz can give me short How can i play online Video.