Search code examples
androidhttpauthenticationmedia-player

Can I use Basic HTTP Authentication with Android MediaPlayer?


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?


Solution

  • I don't think the native media player supports this.