Search code examples
javaandroidurlmp3

Play mp3 file given a url directly to the mp3


I want to be able to play an mp3 file in my android application given a url (e.g. http://www.somedomain.com/audio.mp3).

This I think should be used to get a byte array using an InputStream maybe but I'm not totally sure, which then can be used with a MediaPlayer object.


Solution

  • Read through the SDK pages. Playing from a File or Stream