Hello everybody,
I try on a 6680 to create a player from an InputStream:
InputStream is = new ByteArrayInputStream(audioData);
try {
player = Manager.createPlayer(is, "audio/amr");
player.prefetch();
player.addPlayerListener(this);
player.realize();
VolumeControl vc = (VolumeControl)player.getControl("VolumeControl");
if (vc != null ) {
vc.setLevel(100);
}
player.start();
} catch (IOException e) {
...
} catch (MediaException e) {
...
} catch (Exception e) {
...
}
The problem is that this code does not play the InputStream.
The same code is used on a 6600 and works flawlessly.
Has anybody experienced problems while playing from an InputStream?
Thank you
Bogdan

Reply With Quote

