<div class="gmail_quote"><br><br><br>hi <font face="Simsun"><span style="font-size:medium"><b>Ross:</b></span></font><div><font></font><font face="Simsun"><span style="font-size:medium"><b>I need some help!<br>
</b></span></font><div><font face="Simsun"><span style="font-size:medium"><b>I recently use live555 to implement a RTP streaming relay, I have to relay PCMU-audio and H263-video from a media server to RTSP client,</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>when I only relay PCMU-audio or H263-video it works ok, but when i want relay both of them it works weird,</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>it can send aduio in 2 seconds, and then re-cache the rtp streaming, then the audio can't be send <br></b></span></font><div>
<font face="Simsun"><span style="font-size:medium"><b>, but video works well. I am sorry my english is not good.</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>this is frame work of my PCMU-audio relay:</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>1. I use SimpleRTPSource::createNEW() to get the RTP streaming.</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>2. I use SimpleRTPSink::createNEW() to create audioSink.</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>3.I use audioSink to play audioSource. </b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>and it works well.</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b><br></b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>this is frame work of my H263-video relay:</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>1. I use SimpleRTPSource::createNew() to get the RTP streaming.</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>2. I use H263plusVideoStreamFramer::createNew() to create video source.</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>3. I use H263plusVideoRTPSink::createNew() to create video sink.</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>4. I use videosink to play videosource.</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>an it works well.</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b><br>
</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>but after relay both of them. it woks weird.</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>1. ServerMediaSession* sms = ServerMediaSession::createNew(*env, 8554).</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>2. RTSPServer* rtspServer = RTSPServer::createNew(*ene, 8554).</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>3. sms->addSubsession(PassiveServerMediaSubsession::create(*audiosink, audioRTCP)).</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>4. sms->addSubsession(PassiveServerMediaSubsession::create(*videosink, videoRTCP)).</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>5. rtspServer->addServerMediaSession(sms);</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b>6. audioSink->startPlaying(*aduioSource, afterPlaying, audioSink);</b></span></font></div>
<div><font face="Simsun"><span style="font-size:medium"><b>7. videoSink->startPlaying(*videoSource, afterPlaying, videoSink);</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b><br>
</b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b><br></b></span></font></div><div><font face="Simsun"><span style="font-size:medium"><b><br>
</b></span></font></div></div>
</div>
</div><br>