Hehe, much questions for a single thread:
First:
I wasn't able to make the tutorial running. But it looks like the tutorial is for an application that streams a whole file from a webserver, but not an ongoing live stream as you have to provide the filesize when starting the custom mediaplayer. Were you able to play an ongoing live stream? Would be nice if you share some code or tell me how you did it.
Second:
All my tests with m3u and pls files didn't work, so i think it is not possible to play them. It's anoying that there are so few informations about supported media types.
Third:
You could check if the Google server on
www.google.com is available. If not it gives you an exception.
Fourth:
First, you have to implement the interface MediaPlayer.OnBufferingUpdateListener into your activity. Then you have to make a method looking like the following:
Using java Syntax Highlighting
public void onBufferingUpdate(MediaPlayer arg0, int percent) {
Log.d(TAG, "onBufferingUpdate percent:" + percent);
}
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
Then, before you start the mediaplayer (mediaplayer.start()), you have to bind the OnBufferingUpdateListener to the mediaplayer:
Using java Syntax Highlighting
mMediaPlayer.setOnBufferingUpdateListener(this);
Parsed in 0.029 seconds, using
GeSHi 1.0.8.4
From now on, everytime something changes in the buffering status, the onBufferingUpdate-method will get called and you the code in there will be run. You can check there how much data is already buffered and react on that.
Check the mediaplayer sample in the ApiSample Code of the SDK. There in the Videoplayer sample it is done exactly like that (it's similar to use with audio).
Am I clear?:-)
Cheers, Luki