Hi, I am developing a RTSP Client, and have problem sending SETUP or PLAY command to server with RTSPClient::setupMediaSubsession() and RTSPClient::playMediaSubsession().
If I get the SDP from server as the following message: ------------------------------------------------------------------------------------------------------------------------------------------ Sending request: DESCRIBE rtsp://172.16.2.209:554/v1 RTSP/1.0 CSeq: 1 Accept: application/sdp User-Agent: TestClient (LIVE555 Streaming Media v2009.07.09) Received DESCRIBE response: RTSP/1.0 200 OK CSeq: 1 Server: VStream Streaming Server V1.0 Content-Base: rtsp://172.16.2.209:554/v1/ Content-Type: application/sdp Content-Length: 355 Need to read 355 extra bytes Read 355 extra bytes: v=0 o=- 1 1 IN IP4 127.0.0.1 s=VStream Live i=ICL Streaming Media c=IN IP4 0.0.0.0 t=0 0 m=video 0 RTP/AVP 99 a=rtpmap:99 H264/90000 a=fmtp:99 profile-level-id=42A01E;packetization-mode=1;sprop-parameter-sets=Z0IAHukBaHsg,aM44gA== a=control:trackID=0 m=audio 0 RTP/AVP 14 a=fmtp:14 config=0050000100003e8000000fa001200000 a=control:trackID=1 ------------------------------------------------------------------------------------------------------------------------------------------ I will only SETUP and PLAY H.264 video stream as the following command: ------------------------------------------------------------------------------------------------------------------------------------------ Sending request: SETUP rtsp://172.16.2.209:554/v1/trackID=0 RTSP/1.0 CSeq: 2 Transport: RTP/AVP;unicast;client_port=60686-60687 User-Agent: TestClient (LIVE555 Streaming Media v2009.07.09) Received SETUP response: RTSP/1.0 200 OK CSeq: 2 Cache-Control: no-cache Transport: RTP/AVP;unicast;mode=play;client_port=60686-60687;server_port=51894-51895 Session: BDCED3A012717E1B5E46 Sending request: PLAY rtsp://172.16.2.209:554/v1/ RTSP/1.0 CSeq: 3 Session: BDCED3A012717E1B5E46 Range: npt=0.000- User-Agent: TestClient (LIVE555 Streaming Media v2009.07.09) Received PLAY response: RTSP/1.0 200 OK CSeq: 3 Session: BDCED3A012717E1B5E46 Range: npt=now- RTP-Info: url=rtsp://172.16.2.209:554/v1//trackID=0;seq=41204;rtptime=0 ------------------------------------------------------------------------------------------------------------------------------------------ After a while, when the VIDEO stream is still playing, I wanna SETUP another stream in the *same* RTSP connection, according to SDP, it's trackID=1. I use RTSPClient::setupMediaSubsession() to send SETUP. ------------------------------------------------------------------------------------------------------------------------------------------ Sending request: SETUP rtsp://172.16.2.209:554/v1/trackID=1 RTSP/1.0 CSeq: 4 Transport: RTP/AVP;unicast;client_port=37178-37179 Session: BDCED3A012717E1B5E46 User-Agent: TestClient (LIVE555 Streaming Media v2009.07.09) Tasot T/V;ncs;oepa;letpr=27-277;server_pot5985919 eso:07611AFC4E ------------------------------------------------------------------------------------------------------------------------------------------ you can see the Response from server is a mess, but I can be sure of one thing, the Server do response properly to client Because I capture the TCP/IP packet via software Wireshark. but livemedia seems to be failed in reading and parsing response? ps. livemedia version: 2009.07.09 thanks for reading and help! regards, Vincent
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel