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:
Browser keeps loading forever when sending request to java ServerSocket
I’m making an android app that acts like a web server to send files across HTTP while trying to the connection alive.
The problem is that when I try to send request to the android server to load the page the browser keeps loading forever.