Android MediaPlayer streaming stops on network change

Viewed 6281

I am streaming audio using MediaPlayer on Android.

When the device moves from Wi-Fi to the cell network or vice-versa, the MediaPlayer stops playback.

Typically there are a few seconds-worth of audio in the buffer, so playback does not cease immediately.

Ideally I would like to pick up the stream for uninterrupted playback, but I cannot see how to do it.

I am working with both mp3 files hosted on the server and a live broadcast stream.

4 Answers
Related