aspose file tools*
The moose likes Java Micro Edition and the fly likes MP3/J2ME Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "MP3/J2ME" Watch "MP3/J2ME" New topic
Author

MP3/J2ME

Ould Nadif
Ranch Hand

Joined: Jan 21, 2004
Posts: 184
Hi all,

first of all, happy new year 2006 to everyone.

By the way I have one question:
1-I would like know if it is possible to play a mp3 file from J2ME with MMAPI ?
2-If no, is there an onother way to do it (extern API for example)

OULD NADIF


We are ones that build the world, thus build it well.
payal agrawal
Ranch Hand

Joined: Oct 11, 2005
Posts: 44
Look at the URL below:

Playing MP3 files from your server on J2ME devices
http://www.java-tips.org/content/view/153/73/

Playing MP3 from your local file on J2ME devices
http://www.java-tips.org/content/view/154/73/
Alfredo Estrada
Greenhorn

Joined: Jan 07, 2006
Posts: 4
Heeey, First review:

Each phone souports diferent protocols and file formats, for create aMedia content from a Manager.createPlayer(...);

In the target Cell Phone, install a MIDlet that display the results of this code:
//-------------------------------------------------------------------------
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.microedition.media.*;

public class MediaInformationMIDlet
extends MIDlet
implements CommandListener {
private Form mInformationForm;

public void startApp() {
if (mInformationForm == null) {
mInformationForm =
new Form("Content types and protocols");
String[] contentTypes =
Manager.getSupportedContentTypes(null);
for (int i = 0; i < contentTypes.length; i++) {
String[] protocols =
Manager.getSupportedProtocols(contentTypes[i]);
for (int j = 0; j < protocols.length; j++) {
StringItem si = new StringItem(contentTypes[i] + ": ",
protocols[j]);
si.setLayout(Item.LAYOUT_NEWLINE_AFTER);
mInformationForm.append(si);
}
}
Command exitCommand = new Command("Exit", Command.EXIT, 0);
mInformationForm.addCommand(exitCommand);
mInformationForm.setCommandListener(this);
}

Display.getDisplay(this).setCurrent(mInformationForm);
}

public void pauseApp() {}

public void destroyApp(boolean unconditional) {}

public void commandAction(Command c, Displayable s) {
notifyDestroyed();
}
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MP3/J2ME