first u have to download JMF 2.1 from java.sun.com/
install jmf on ur machine
then run the foll code..
import javax.media.*;
import javax.media.rtp.*;
import java.net.*;
public class RTPPlayer implements ControllerListener {
Player player;
public RTPPlayer() {
try {
URL url = new URL("file://foo.wav.gsm");
player = Manager.createPlayer(url);
player.addControllerListener(this);
player.start ();
} catch (Exception e) {
}
}// RTPPlayer
public void controllerUpdate( ControllerEvent evt) {
}
public static void main (
String args[]) {
RTPPlayer rtpPlayer = new RTPPlayer();
System.out.println ("starting to play...");
}
}
this is just a rough code..but will serve
the purpose.
you have to stop the player using player.stop();
otherwise it continues to run in the background.
happy coding
[This message has been edited by Stanley George (edited February 20, 2001).]