Relative Content

Tag Archive for javaandroidhttpsockets

What’s the correct way to play an HTTP audio stream in android?

I am making an app for a radio station outputting to FM as well as a shoutcast server, and the app should play the stream in the background. Unfortunately I’m not very familiar with the direct HTTP MPEG streaming protocol shoutcast uses, nor android at all. Currently I have a MediaPlayer set to play from the URL directly and it works perfectly for up to a minute. After that, I receive the following trace: