spoiledsport / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

cant recieve rtp packets #387

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run call application after editing call_main to use LinphoneMediaEngine..
2. audio_codecs added speex..
3.

What is the expected output? What do you see instead?
can't hear any audio, and after hanging up... on checking the rtp packets.. it 
says..

ortp-message- number of rtp packet sent=6186
ortp-message- number of rtp bytes sent=1063992 bytes
ortp-message- number of rtp packet received=0
ortp-message- number of rtp bytes received=0 bytes
ortp-message- number of incoming rtp bytes successfully delivered to the 
application=0

 this is the edited part of call_main
  if (FLAG_voiceinput || FLAG_voiceoutput ||
      FLAG_videoinput || FLAG_videooutput) {
    // If any dump file is specified, we use a FileMediaEngine.
    cricket::MediaEngineInterface* engine =
        MediaEngineFactory::CreateFileMediaEngine(
            FLAG_voiceinput, FLAG_voiceoutput,
            FLAG_videoinput, FLAG_videooutput);
    client->SetMediaEngine(engine);
  }
  else
  {
    cricket::LinphoneMediaEngine* lin_engine =new cricket::LinphoneMediaEngine("cars.wav","chris.wav");

      std::vector<cricket::AudioCodec> voice_codecs;

      voice_codecs.push_back(
           cricket::AudioCodec(99,  "speex",  16000, 0, 1, 0)); 
      voice_codecs.push_back(
          cricket::AudioCodec(9, "G722", 16000, 0, 1, 0));
      voice_codecs.push_back(
          cricket::AudioCodec(0, "PCMU", 8000, 0, 1, 0));
      voice_codecs.push_back(
          cricket::AudioCodec(13, "CN", 8000, 0, 1, 0));
      voice_codecs.push_back(
          cricket::AudioCodec(105, "CN", 16000, 0, 1, 0));    
      lin_engine->set_voice_codecs(voice_codecs);
      std::vector<cricket::VideoCodec> video_codecs;
      video_codecs.push_back(
          cricket::VideoCodec(97, "H264", 320, 240, 30, 0));
      video_codecs.push_back(
          cricket::VideoCodec(99, "H264-SVC", 640, 360, 30, 0));
      lin_engine->set_video_codecs(video_codecs);

      cricket::MediaEngineInterface* engine = lin_engine;
      client->SetMediaEngine(engine);

  }

What version of the product are you using? On what operating system?
libjingle 0.6.14

What do you think is wrong..

Original issue reported on code.google.com by tejeshsm...@gmail.com on 27 Aug 2012 at 2:10

GoogleCodeExporter commented 9 years ago
ubuntu 11.10 in both machines

Original comment by tejeshsm...@gmail.com on 27 Aug 2012 at 3:54

GoogleCodeExporter commented 9 years ago
No longer supporting LinphoneMediaEngine.

Original comment by juberti@google.com on 31 May 2013 at 3:57