Hi,
Trying to play a sound file off the filesystem:
(The path here translates to "file:///E:/145.wav").Code:Player player = Manager.createPlayer("file:///" + currDirName.toString() + fileName.toString()); player.realize(); player.prefetch(); player.start(); }
This plays fine on the Sun emulator (although 15-20 second delay).
The nokia emulator throws exception however: when calling createPlayer I get MediaException: invalid locator file:///E:/145.wav.
I have tried the InputStream version of this code and just keep getting outofmemory errors or device error errors (despite trying the fixes suggested).
I have tried both MP3 and WAV files. The emulator is 6230i.
Any help appreciated,
Thanks.

Reply With Quote

