Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Multimedia problem
Multimedia problem [message #544560] Sat, 03 July 2010 16:43
Eclipse User
Originally posted by: news.s237965939.online.de

public static boolean isMidiAvailable() {
try {
Class.forName("javax.microedition.media.Manager");
} catch (ClassNotFoundException e) {
return false;
}
return true;
}

if (MobileGuitarMIDlet.isMidiAvailable() == true) {
try {
midiPlayer = Manager.createPlayer(Manager.MIDI_DEVICE_LOCATOR);
playerName = midiPlayer.toString();
midiPlayer.close();
} catch (IOException e) {
midiStatus = e.getMessage();
} catch (MediaException e) {
midiStatus = e.getMessage();
}
}

The code above throws a 'createPlayer() failed' exception on a Motorola
V3 (CLDC 1.0). Does anybody have an idea why? The device definately has
a midi player.

THX,
Hans
Previous Topic:Multimedia problem
Next Topic:Using midp_2.0 library in Eclipse
Goto Forum:
  


Current Time: Sat Apr 19 03:11:00 EDT 2014

Powered by FUDForum. Page generated in 0.01827 seconds