[Live-devel] OnDemandServerMediaSubSession
Aeschbacher Fabrice
Fabrice.Aeschbacher at siemens.com
Tue Jun 28 18:19:09 PDT 2005
Hi Ross,
> > I turned the debug infos on in
> > "RTSPServer::RTSPClientSession::incomingRequestHandler1()":
> > this showed that none of mplayer, openRTSP, VLC sends a RTSP
"TEARDOWN", neither
> > when stopping, nor when exiting.
>
> That's not true. VLC sends a "TEARDOWN" when the user clicks
> the 'stop' button (or the 'close' button to close the application).
> QuickTime Player sends a "TEARDOWN" when the user closes the
> application. openRTSP sends a "TEARDOWN" if it's run with
> the "-e <endTime>" argument.
Good to know. So there must be another problem here, because I cannot
see any "TEARDOWN".
I tried to #define DEBUG in RTPServer.cpp to see which messages are
being exchanged. I started the server, then a client:
$ openRTSP -e 5 rtsp://admin:admin@cx7:7070/input1
Here is the server's output:
========================================================================
===============
accept()ed connection from 141.73.30.69
RTSPClientSession[0x8b5c1c0]::incomingRequestHandler1() read 125
bytes:OPTIONS rtsp://admin:admin@cx7:7070/input1 RTSP/1.0
CSeq: 1
User-Agent: openRTSP (LIVE.COM Streaming Media v2005.06.07)
parseRequestString() returned cmdName "OPTIONS", urlPreSuffix "",
urlSuffix "input1"
sending response: RTSP/1.0 200 OK
CSeq: 1
Date: Tue, Jun 28 2005 15:09:19 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
RTSPClientSession[0x8b5c1c0]::incomingRequestHandler1() read 151
bytes:DESCRIBE rtsp://admin:admin@cx7:7070/input1 RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: openRTSP (LIVE.COM Streaming Media v2005.06.07)
parseRequestString() returned cmdName "DESCRIBE", urlPreSuffix "",
urlSuffix "input1"
sending response: RTSP/1.0 401 Unauthorized
CSeq: 2
Date: Tue, Jun 28 2005 15:09:19 GMT
WWW-Authenticate: Digest realm="LIVE.COM Streaming Media",
nonce="956bc84cabcde4cfd308cf746a3f4cbf"
RTSPClientSession[0x8b5c1c0]::incomingRequestHandler1() read 354
bytes:DESCRIBE rtsp://admin:admin@cx7:7070/input1 RTSP/1.0
CSeq: 3
Accept: application/sdp
Authorization: Digest username="admin", realm="LIVE.COM Streaming
Media", nonce="956bc84cabcde4cfd308cf746a3f4cbf",
uri="rtsp://admin:admin@cx7:7070/input1",
response="41010c4d518342d2e6d7ead6e7ae04ab"
User-Agent: openRTSP (LIVE.COM Streaming Media v2005.06.07)
parseRequestString() returned cmdName "DESCRIBE", urlPreSuffix "",
urlSuffix "input1"
lookupPassword(admin) returned password admin
sending response: RTSP/1.0 200 OK
CSeq: 3
Date: Tue, Jun 28 2005 15:09:19 GMT
Content-Base: rtsp://141.73.30.101:7070/input1/
Content-Type: application/sdp
Content-Length: 409
v=0
o=- 1119971342395943 1 IN IP4 141.73.30.101
s=Streamed by cxcast
i=info
t=0 0
a=tool:LIVE.COM Streaming Media v2005.06.07
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 141.73.30.101
a=rtcp:unicast reflection
a=range:npt=0-
a=x-qt-text-nam:Streamed by cxcast
a=x-qt-text-inf:info
m=video 7072 RTP/AVP 96
c=IN IP4 232.1.227.20/255
a=rtpmap:96 H263-1998/90000
a=control:track1
RTSPClientSession[0x8b5c1c0]::incomingRequestHandler1() read 385
bytes:SETUP rtsp://admin:admin@cx7:7070/input1/track1 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;multicast;client_port=7072-7073
Authorization: Digest username="admin", realm="LIVE.COM Streaming
Media", nonce="956bc84cabcde4cfd308cf746a3f4cbf",
uri="rtsp://admin:admin@cx7:7070/input1",
response="8c86edbbb40f79d56342bc70d3604aa5"
User-Agent: openRTSP (LIVE.COM Streaming Media v2005.06.07)
parseRequestString() returned cmdName "SETUP", urlPreSuffix "input1",
urlSuffix "track1"
sending response: RTSP/1.0 200 OK
CSeq: 4
Date: Tue, Jun 28 2005 15:09:19 GMT
Transport: RTP/AVP;multicast;destination=232.1.227.20;port=7072;ttl=255
Session: 1
RTSPClientSession[0x8b5c1c0]::incomingRequestHandler1() read 356
bytes:PLAY rtsp://admin:admin@cx7:7070/input1 RTSP/1.0
CSeq: 5
Session: 1
Range: npt=0.000-
Authorization: Digest username="admin", realm="LIVE.COM Streaming
Media", nonce="956bc84cabcde4cfd308cf746a3f4cbf",
uri="rtsp://admin:admin@cx7:7070/input1",
response="b19c93657bd0512b31a1da8ed304aae1"
User-Agent: openRTSP (LIVE.COM Streaming Media v2005.06.07)
parseRequestString() returned cmdName "PLAY", urlPreSuffix "", urlSuffix
"input1"
startStream(1)
sending response: RTSP/1.0 200 OK
CSeq: 5
Date: Tue, Jun 28 2005 15:09:19 GMT
Range: npt=0.000-
Session: 1
RTP-Info:
url=rtsp://141.73.30.101:7070/input1/track1;seq=30263;rtptime=712478490
========================================================================
===============
As you can see, no TEARDOWN command was triggered. Do I miss something?
Best regards,
Fabrice Aeschbacher
More information about the live-devel
mailing list