[Live-devel] RTSP over TCP

pan_xiaolei pan_xiaolei at sina.com
Sat Sep 1 23:04:50 PDT 2007


Hi, 

When I use the realplayer to receive AV data from live555, I find the player will terminate the stream after 44mins' palying(I force the realplayer to use TCP only). I find the realplayer will send a OPTION to the server every 45 mininute, after analyzing the sniffer data:
1407 45.051016   192.168.1.2           192.168.1.101         RTP      Payload type=MPEG-I/II Audio, SSRC=2140963863, Seq=60198, Time=3510955047
1408 45.056088   192.168.1.101         192.168.1.2           RTSP     OPTIONS rtsp://192.168.1.2:8554/test.mp3 RTSP/1.0
1447 90.059581   192.168.1.101         192.168.1.2           RTSP     OPTIONS rtsp://192.168.1.2:8554/test.mp3 RTSP/1.0
1449 92.549210   192.168.1.101         192.168.1.2           RTSP     TEARDOWN rtsp://192.168.1.2:8554/test.mp3 RTSP/1.0
1451 92.549587   192.168.1.101         192.168.1.2           RTCP     Receiver Report

My question is how can I processs the RTSP while the server is receiving the RTCP. Must I modify the following code to deal with this?
RTPInterface.cpp:292  SocketDescriptor::registerRTPInterface()
  if (isFirstRegistration) {
    // Arrange to handle reads on this TCP socket:
    TaskScheduler::BackgroundHandlerProc* handler
      = (TaskScheduler::BackgroundHandlerProc*)&tcpReadHandler;
    fEnv.taskScheduler().
      turnOnBackgroundReadHandling(fOurSocketNum, handler, this);
  }

BTW, VLC is perfect to deal with this, but i also wish the realplayer be OK.




David Pan
2007-09-02



More information about the live-devel mailing list