1. Check out our app, Forums for Android! Download and leave feedback here!

Slow streaming shoutcast in Android

Discussion in 'Application Development' started by lacasrac, Oct 16, 2010.

  1. lacasrac

    lacasrac New Member
    Thread Starter
    5

    May 15, 2010
    1
    0
    5
    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...