I am writing a player to stream audio via rtsp connection. the code is:It works fine with the other nokia phones. On Nokia 6300. player can be realized and prefetched, but when I start the player, a "device error" throw out. Does anybody know what is the reason?Code:try { url = "rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio1/live/r1_dsat_g2.ra"; player = Manager.createPlayer(url); player.addPlayerListener(this); if (player == null) { throw new Exception("Could not create player for streaming"); } player.realize(); player.prefetch(); volumeControl = (VolumeControl) player.getControl("VolumeControl"); setVolumeValue(50); player.start(); } catch (Exception e) { error(e); }

Reply With Quote


