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