I cant find a way to use an url that requires basic auth when im useing mp.setDataSource(url);
MediaPlayer mp = new MediaPlayer();
mp.setDataSource(url);
mp.
You can pass HTTP headers, including basic auth headers, in MediaPlayer requests using the following method, which is available in Android API level 14 and above.
http://developer.android.com/reference/android/media/MediaPlayer.html#setDataSource(android.content.Context%2C%20android.net.Uri%2C%20java.util.Map%3Cjava.lang.String%2C%20java.lang.String%3E)