Hi all,<br><br>I think I found the problem, <br><br>While the client is receiving VIDEO stream data, and want to SETUP another stream, such as AUDIO stream. <br>In other words, it will reuse the same RTSP connection to send out SETUP/PLAY command.<br>
<br>If the client code is as follow to send the SETUP/PLAY command in the existence RTSP connection:<br><br>rtspClient->setupMediaSubsession(*subsession, False, streamUsingTCP); //send SETUP<br><div id=":152" class="ii gt">
rtspClient->playMediaSubsession(*subsession); //send PLAY<br>
<br>it will failed to recv response data from Server side and mess it
up, because the Event Loop will recv the data at the same time.<br><br>so my solution is to create a task, such as:<br><br>env->taskScheduler().scheduleDelayedTask();<br>
<br>And it work fine.<br><br>I hope my conclusion is right :-)<br></div><br><br><div class="gmail_quote">2009/8/18 Vincent Chen <span dir="ltr"><<a href="mailto:silence.vincent@msa.hinet.net">silence.vincent@msa.hinet.net</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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></blockquote></div><br>