title: Stream authenticated Video with MediaPlayer on Android
body: <p>I’m trying to stream &amp; play the Videos  from the SharePoint server URL  having basic auth <strong>(username/password)</strong>  in my Android device <code>browser / Media Player /VideoView</code>
  But I’m getting </p>
  
  <p><strong>the error</strong> </p>
  
  <pre><code> sorry this video can’t be played. 
  </code></pre>
  
  <p>Also auth parameters (username/password) inside the URL is not working  (eg: <a href="http://username:password@www.hostname.com/test.mp4" rel="nofollow">http://username:password@www.hostname.com/test.mp4</a> )</p>
  
  <p>But I can download and play it fine using the Android HTTP download class with authentication.</p>
  
  <p>Can anybody suggest how  authentication can be set to the VideoView  class for streaming video</p>
  
  <p>Thanks in Advance !!</p>