You Are Here:

Community: Developer Discussion Boards

#1 Old Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV format - 2008-06-19, 16:12

Join Date: Jun 2008
Posts: 8
hereiam000
Offline
Registered User
Hi all,

I am working on a project MobileSIPClient. The aim of the project
is to form a SIP Client which performs;

- registration to a proxy server.
- deregistration
- adding a contact
- deleting a contact
- instant messaging
- getting the presence information of the contacts
- editing account settings
- making a call. (Real-Time)

I have already achieved first 7 steps. They work well. But I have some concerns about the last step - making a call in REAL-TIME.

I am using SIP protocol for signalling. I am developing this project in J2ME by using Eclipse IDE and Sun Wireless Toolkit 2.5.2. In the step "Making a Call" especially in RTP step, I have achieved:
- Opening Connection for Receiving
- Receiving Packets
- RTP Packet Extraction

My Questions:

- As far as I know, J2ME MMAPI has already PCM codec support. But this is for capturing audio and for playing the audio coming from the remote client? Is this right?

Any need to implement a codec code to play RTP Packets coming from remote client?

- While trying to play RTP Payload, it throws an exception.


ByteArrayInputStream in = new ByteArrayInputStream(RTPSourceStream.getInstance().getRTPPayload());

this.rtp_play = Manager.createPlayer(in, "audio/x-wav");
this.rtp_play.realize(); // Failing at this point
this.rtp_play.start();

The exception is:

javax.microedition.media.MediaException: Failed to realize Player: Malformed wave media: expected 'RIFF'
at com.sun.mmedia.WavPlayer.doRealize(+341)
at com.sun.mmedia.BasicPlayer.realize(+84)
at RTPConnection.run(+130)

As I understood, we cannot play the raw RTP Payload directly. We need to convert it to something to WAV format. Is this right?

Any comments would be appreciated.

Thanks,
Nazan
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to play RTP packets ramyakk VoIP 5 2008-08-29 00:36
Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV format hereiam000 Mobile Java Networking & Messaging & Security 1 2008-06-20 13:57
Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV format hereiam000 Audio 0 2008-06-19 16:03
Unable to play RTP Payload(Actual Voice Data coming from remote client) in J2ME hereiam000 VoIP 0 2008-06-18 21:30
Client program in .exe unable to send data k.sandeep Symbian Networking & Messaging 4 2006-04-30 16:29

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia