Slow streaming shoutcast in Android


Last Updated:

  1. lacasrac

    lacasrac New Member This Topic's Starter

    Joined:
    May 15, 2010
    Messages:
    1
    Likes Received:
    0
    in VLC i get 120 kb/s but in android i get 30-32 kb/sec of a shoutcast.

    if in VLC the speed is 200 kb -> on android i get 50-52 kb max

    i use this code for the stream:

    URLConnection cn = new URL(mUrl).openConnection();
    cn.connect(); InputStream stream = cn.getInputStream();

    byte buf[] = new byte[16384];
    ...

    do {
    int nread = stream.read(buf);
    ...
    while...

    what is the solution for this?
     

    Advertisement

Share This Page

Loading...