0

I try to implement a simple media player to play an audio stream from an external URL. Pretty simple I guess. Tried to implement this sample from Androïd dev site http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Audio.html

It works just fine with 2.1. Then, with 2.2 it gets weird. Starts just well, but takes almost 10 seconds to stop. With 2.3, it's not better. This time might take up to a minute to start playing, but stops OK.

Does anyone have a clue why ? I also did try the prepareAsync way with the listner, but it never get called. Any help would be appreciated at this point. Thanks !

Collin
  • 11,977
  • 2
  • 46
  • 60
Patrice Cote
  • 3,572
  • 12
  • 43
  • 72
  • I just took a test with GSM connection under 2.3. It takes 2:43 minutes and hangs after a few minutes... Not good at all. – Patrice Cote Apr 23 '12 at 18:46

1 Answers1

0

Register setOnInfoListener() and control start buffering, end buffering and so on. Look at the android documentation link

Suvam Roy
  • 1,282
  • 2
  • 11
  • 21