1

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:

  1. The progress when starting to play? E.g. a progress bar in the GUI
  2. 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)

4

1 に答える 1