1. Are you ready for the Galaxy S20? Here is everything we know so far!

Droid specific audio streaming issues

Discussion in 'Android Development' started by cvance383, Dec 20, 2009.

  1. cvance383

    cvance383 Lurker
    Thread Starter

    I have an app that streams mp3's from a server, works fine on 1.5 and
    lower. But on the droid, for certain songs the mediaplayer buffers to
    like over 50% but onPrepared() is never called. These same songs work
    fine on 1.5 or on a 2.0 emulator but for some reason they just hang on
    the actual droid phone. No mediaplayer errors are thrown but if i call
    stop or reset it while it is hanging like this, it throws this,

    12-18 19:14:05.230: ERROR/MediaPlayer(15718): stop called in state 4
    12-18 19:14:05.230: ERROR/MediaPlayer(15718): error (-38, 0)
    12-18 19:14:05.238: ERROR/PlayerDriver(987): Command (6) was cancelled

    it is only for certain files (yes they are all mp3s) and only on the
    droid. Anyone have any ideas why these songs would hang? I already
    checked the http headers and they are correct. Thanks for any help, it
    will be greatly appreciated.

    1. Download the Forums for Android™ app!


  2. KeithG

    KeithG Well-Known Member

    compare the mp3 encoding info on the files? First thing I'd check is to see if the ones that don't work are VBR or CBR.
  3. cvance383

    cvance383 Lurker
    Thread Starter



    this mp3 will stream fine if you go to the url on android 1.5, but not on 2.0. If you download the mp3, and put it on the phone it works on 2.0, just not when you stream it.

Share This Page