MediaElementAudioSource outputs zeroes due to CORS access restrictions

In my response I will assume the following setup: Your stream URL is http://stream.radio.com:8000/mount (or http://stream.radio.com:8000/;stream/1 for Shoutcast) Your paget URL where you place your HTML/JS code URL is http://radio.com/player To get this working you need: Set the “Access-Control-Allow-Origin” header of your stream to your domain or * In javascript, set audio tag crossOrigin property … Read more

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

Shoutcast mp3 streaming from Android 2.2 onwards is supported natively . Below 2.2 the Android OS cannot play shoutcast streams natively without using a proxy on the stream end or a stream proxy class on the device to capture the stream and pass it to the audioplayer just like NPR does. audio/aacp streaming is not … Read more

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

The problem is that content type “audio/aacp” streaming is not supported directly. Some decoding libraries can be used to play “aacp”, 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 … Read more