I have a very annoying problem:
I'm trying to play streaming sound (mid) on my application.
The thing is that this operation succeeds in some devices (N70), but fails in other (Nokia 6101).
Here is the code I'm using:
HttpConnection conn = (HttpConnection)Connector.
open("my url", Connector.READ);
InputStream is = conn.openInputStream();
Player player = Manager.createPlayer(is,"audio/midi");
// get volume control for player and set volume to max
VolumeControl vc = (VolumeControl) player.getControl("VolumeControl");
if(vc != null)
// the player can start with the smallest latency
// non-blocking start
Please note that altough this fails in Nokia 6101, I'm still able to play sound (if I put a mid in my resources directory).
Thanks in advance,