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?
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?