Wednesday, June 22, 2011

[android-developers] Re: Problem streaming radio on Android 2.2 and up

For streaming, you should be using prepareAsync(). I am not sure why
the behaviour is different in pre-2.2 devices, but at-least the docs
say that for streaming, the prepare() method will not return
immediately.

http://techdroid.kbeanie.com/2011/06/streaming-radio-stations-on-android.html


On Jun 21, 2:12 am, Chandler Bennett <mcbennett0...@yahoo.com> wrote:
> I am currently designing an android application that incorporates
> radio streaming. The app works as it should with devices below Android
> 2.2, but works slowly if the device is 2.2 or above. I am using the
> MediaPlayer object, and I am calling the 'setDataSource(mylink.com/
> radio.mp3)' method as well as the 'prepare()' method. The problem
> seems to occur when the MediaPlayer is being prepared. It just takes a
> very long time to ready itself for the play state. And again, this
> issue doesn't arise on devices below Android 2.2. Any ideas?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment