Hi everyone

when i try to access the camera of the emulated phone, i get an exception:


java.lang.ClassCastException: com.sun.media.sound.RealTimeSequencer
at com.nokia.phone.sdk.concept.mirrors.mma.media.player.MidiPlayer.doRealize(MidiPlayer.java)
at com.nokia.phone.sdk.concept.mirrors.mma.media.player.TonePlayer.doRealize(TonePlayer.java)
at com.nokia.phone.sdk.concept.mirrors.mma.media.player.BasicPlayer.realize(BasicPlayer.java)
at com.nokia.phone.sdk.concept.mirrors.mma.media.MMAManager.init(MMAManager.java)
at com.nokia.phone.sdk.concept.mirrors.mma.media.MMAManager.createPlayer(MMAManager.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.nokia.phone.sdk.concept.gateway.e.a(e.java)
at com.nokia.phone.sdk.concept.gateway.e.run(e.java)
at java.lang.Thread.run(Thread.java:595)



can anybody explain what went wrong? The way i access the camera is:

try {
player = Manager.createPlayer("capture://video");
player.prefetch();
VideoControl vc = (VideoControl)player.getControl("VideoControl");
i_videoitem = (Item)vc.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE,null);
i_videoitem.setLayout(Item.LAYOUT_CENTER|Item.LAYOUT_VCENTER|Item.LAYOUT_2);
i_videoitem.addCommand(CMD_SHOOT);
i_videoitem.setItemCommandListener(this);
/*
i_captureitem.addCommand(CMD_SAVE);
i_captureitem.setItemCommandListener(this);
*/
append(i_videoitem);
append(new Spacer(getWidth(),1));



player.start();
}




This exception wont occur on the siemens or the wtk emulator -is there anything special on nokia phones?

thanks a lot in advance

n3po