title: RTSP getting stream data
body: <p>I have an IP camera which can give me media-data by RTSP.</p>
  
  <p>I develop an application for getting media-data.</p>
  
  <p>I use C++ and Qt3.</p>
  
  <p>I create socket. connect it to my device IP on port=554.</p>
  
  <p>I do first query </p>
  
  <pre>SETUP rtsp://192.168.4.160/ufirststream RTSP/1.0\r\n
  CSeq: 1\r\n
  Transport: RTP/AVP; client_port=554\r\n\r\n</pre>
  
  <p>And get an answer:</p>
  
  <pre>
  RTSP/1.0 200 OK
  CSeq: 1
  Date: Sat, Mar 24 2012 17:24:59 GMT
  Transport: RTP/AVP;unicast;destination=192.168.4.186;source=192.168.4.160;client_port=0-1;server_port=2000-2001
  Session: 413F4DDB
  </pre>
  
  <p>I parse it for gettin session value, and do next query:</p>
  
  <pre>
  PLAY rtsp://192.168.4.160/ufirststream RTSP/1.0
  CSeq: 1
  Session: 413F4DDB
  </pre>
  
  <p>And server says:</p>
  
  <pre>
  RTSP/1.0 200 OK
  CSeq: 1
  Date: Sat, Mar 24 2012 17:25:02 GMT
  Session: 413F4DDB
  RTP-Info: url=rtsp://192.168.4.160/ufirststream/track1;seq=6716;rtptime=406936711
  </pre>
  
  <p>And how  I can get media-data??? I thought that PLAY-method makes server to give me a stream, but it only gives me an url to rtsp and other info...</p>
  
  <p>I need an binary stream from camera, can you give an advise for my next step??</p>