Droid specific audio streaming issues


Last Updated:

  1. cvance383

    cvance383 New Member This Topic's Starter

    Joined:
    Dec 20, 2009
    Messages:
    4
    Likes Received:
    0
    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.
     

    Advertisement
  2. KeithG

    KeithG Well-Known Member

    Joined:
    Nov 15, 2009
    Messages:
    103
    Likes Received:
    3
    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 New Member This Topic's Starter

    Joined:
    Dec 20, 2009
    Messages:
    4
    Likes Received:
    0
    ***UPDATE***

    http://stream29l.grooveshark.com/collin.php

    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

Loading...