hiiii
i got error prefetch -5 when i'm try to play .wav and .mp3 file in my own player in s60 3rd edition and use content type "audio/x-wav" and "audio/mpeg" respectively.Plz any one tell me reason of this error and solution.i m using simple code for creating player.
the code is below :-
public void startApp(){
InputStream is = getClass().getResourceAsStream("/ash.wav");
try {
Player player = Manager.createPlayer(is, "audio/x-wav");
/* player.realize();
vc = (VolumeControl) player.getControl("VolumeControl");
if(vc != null){
vc.setLevel(Integer.MAX_VALUE);
}
player.prefetch();*/
player.realize();
player.prefetch();
player.start();
} catch (IOException ex) {
ex.printStackTrace();
} catch (MediaException ex) {
ex.printStackTrace();
}
}
i m using netbeans 6.9.1 and s60 3rd edition FP2 SDK

Reply With Quote


