Hi
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.prepareAsync();
Anyone that got any ideas?
Hi
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.prepareAsync();
Anyone that got any ideas?
Have you tried putting the user ID and password in the URL?
http://<user>:<password>@<host>:<port>/<url-path>
You could download the mp3 on the cache and play it, here is a post on that http://almondmendoza.com/2010/03/11/play-mediaplayer-with-authentication-on-android/