1

I have a URL from where I have to stream and play ".m4a" audio file in my application. After searching for this for almost a week I have come up with no solution.

This is the URL of the ".m4a" audio file. http://a2.mzstatic.com/us/r1000/044/Music/e9/40/ec/mzm.evyxvimp.aac.p.m4a

I don't want to download the song and play(that I have done). Issue is I want to just stream and play.

can anyone please guide me how to do this? plz lemme know if there is any link/ref to this.

Me-an-Droid
  • 244
  • 6
  • 12

1 Answers1

0

You can use Some decoding libraries please see the solution below:

Freeware Advanced Audio (AAC) Decoder for Android

How to use this library?

Consider legal issues while using it.

[T]he project http://code.google.com/p/aacplayer-android/ is licensed under GPL, so you can create commercial apps on top of it, but you need to fullfill the GPL - mainly it means to publish your code as well. If you use the second project http://code.google.com/p/aacdecoder-android/ , then you do not need to publish your code (the library is licensed under LGPL).

For more detail please see these questions:

Android MediaPlayer works fine in our Custom audio Streaming application up to Android 2.1 but not in higher versions

Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one

Community
  • 1
  • 1
Yaqub Ahmad
  • 27,569
  • 23
  • 102
  • 149