×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    8

    Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV format

    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

  2. #2
    Registered User
    Join Date
    Feb 2009
    Posts
    6

    Re: Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV fo

    Can you please share me the code ?

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    1

    Red face Re: Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV fo

    I am also facing this problem Please any body can send me the idea how it will be solve. Its my final year project its already too late...

  4. #4
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    131

    Angry Re: Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV fo

    I think this happens because RTP is not supported in J2ME. I am also developing SIP client in J2ME. Can u tell me how u r capturing voice from microphone? and do u stop recorder for accessing recorded bytes? I have problem with this. I can not access recorded bytes until I stop recorder. But this will fail the idea of real time call. So how u had done this and how u had created a RTP connection and RTP packets?

    Waiting for ur reply......

  5. #5
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV fo

    Can u tell me how u r capturing voice from microphone? and do u stop recorder for accessing recorded bytes? I have problem with this. I can not access recorded bytes until I stop recorder. But this will fail the idea of real time call
    You need to play around with multiple players in multiple threads, to capture 100 or 500 milisec's of audio and transmit in packets one after the other using some standard voice codec's similar to what Skypee is using. You may not RTP for this.
    Thanks,
    Ekta

Similar Threads

  1. Unable to play RTP packets
    By ramyakk in forum VoIP
    Replies: 11
    Last Post: 2010-06-04, 15:00
  2. Unable to play RTP Payload(Actual Voice Data coming from remote client) in WAV format
    By hereiam000 in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2008-06-20, 12:57
  3. Replies: 0
    Last Post: 2008-06-19, 15:03
  4. Replies: 0
    Last Post: 2008-06-18, 20:30
  5. Client program in .exe unable to send data
    By k.sandeep in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2006-04-30, 15:29

Posting Permissions

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