I am playing internet radio streams using MediaPlayer. However buffering seems to take about 10 seconds for me each time I start playing a stream. Is there any way I can show:
- The progress when starting to play? E.g. a progress bar in the GUI
- The buffer status once playing? (e.g. to give a warning when buffer is running dry for some reason)
I tried using setOnBufferingUpdateListener()
but as far as I can tell, it only works for streams where the duration is known. (So not applicable to internet radio, unless I'm wrong - it was not being fired)