Hi All..
I am developing a J2ME Voip Client,
For testing purposes I am using a soft phone(Zoiper) on the other end.
I am able to receive RTP packets,encoded using G711-PCMA from the Soft phone in my J2ME client and I am able to extract useful data like payload type,SSRC etc.
But I am unable to play the RTP payload.
Here is part of the code.
RTPPacket rtpPacket = getRTPPacket(dg, dg.getData());
buffer = rtpPacket.getData();
form.append(rtpPacket + " with media length: " + buffer.length);
ByteArrayInputStream input1 = new ByteArrayInputStream(buffer);
form.append("\n Receiving RTP Packets...");
try {
form.append("\n Trying to create player...");
player= Manager.createPlayer(input1,"audio/x-wav");
form.append("\n Player created");
player.prefetch();
player.realize();
player.start();
form.append("\n Player started");
form.append("Player duration:"+player.getDuration());
} catch(Exception e) {
e.printStackTrace();
}
Thanks in advance.
Ramya






