Hi,
Iam using JAVA WTK 2.5, Iam trying to play an AMR file, but Iam getting the exception
"javax.microedition.media.MediaException: Cannot create a Player for: audio/amr with exception message: Error: Can not find QuickTime path in registry."
Can anybody tell me the reason for the same, what am I missing, My code is as follows
String resfile_name = "/test.amr";//the test.amr file is in the res folder of the project
InputStream is2 = null;
is2 = this.getClass().getResourceAsStream(resfile_name);
player = Manager.createPlayer(is, "audio/amr" );
// registering the playerthread as a PlayerListener
player.addPlayerListener(this);
// Allocating the resources for the audio data
player.realize();
// start the playback
player.start();
But when i tried the getSupportedContentTypes() I got the supported methods as
Supported = video/mpeg
Supported = image/gif
Supported = audio/x-wav
Supported = audio/amr
Supported = audio/x-tone-seq
Supported = audio/sp-midi
Supported = audio/midi
Supported = video/mpeg
Supported = image/gif
Supported = audio/x-wav
Supported = audio/amr
Supported = audio/x-tone-seq
Supported = video/vnd.sun.rgb565
Supported = audio/sp-midi
Supported = audio/midi
Thanks in Advance

Reply With Quote

