Alight, thanks for your testing help. Simultaneously I've tried the same
station in some other app - pcRadio and in my own - preparation differs.
pcRadio works as you said with fractions of a second, but my doesn't :(
On Thursday, September 27, 2012 3:03:51 PM UTC+4, Harri Smått wrote:
>
> Hi,
>
> Unfortunately I wasn't able to reproduce similar behaviour on SGS2, only
> device I have, running ICS 4.0.4. I ran following code and stream started
> to play within 2-3 seconds delay it takes to bring GPRS connection alive.
> Using WiFi delay was only fraction of a second.
>
> mp = new MediaPlayer();
> mp.setDataSource(this, Uri.parse("http://radio-shtorm.ru:8000/32"));
> mp.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
> @Override
> public void onPrepared(MediaPlayer mp) {
> mp.start();
> }
> });
> mp.prepareAsync();
>
> --
> H
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en