title: Playing sdp file (rtsp stream) from http url in android
body: <p>I have a rtsp stream on my rtsp server in localhost.
  I would to play this file with the android class MediaPlayer.</p>
  
  <p>If I do setDataSource(rtsp://localhost/file.sdp) it works!!</p>
  
  <p>My problem is... if I copy the file on my http server and I do </p>
  
  <pre><code>setDataSource(http://localhost/file.sdp) 
  </code></pre>
  
  <p>it does not work!! I receive an I/O exception.</p>
  
  <pre><code>filePath = "http://localhost/file.sdp";
  mediaPlayer.setDataSource(filePath);
  mediaPlayer.prepare();
  mediaPlayer.start();
  </code></pre>
  
  <p>If I play this file with vlc application it works. </p>