padma prabhavathi wrote:
[...]
> Do u know anything about tunewiki?If u know anything about it then kindly
> give me some information about it.

I don't know who u is, and I don't know how tunewiki works, but if it's 
anything like the streaming audio app that *I* wrote, it works by using 
one thread to download the MP3 into a file, and then telling MediaPlayer 
to play from the file in another thread.

This approach works, but isn't really adequate; you need to pad the file 
out with zeroes to make it the right length otherwise MediaPlayer gets 
very confused about how long the audio is, and it *still* gets very 
confused (and crashes) if you use oggs instead of MP3s.

But this is strictly a workaround, and a pretty clunky and unreliable 
one. MediaPlayer is *supposed* to be able to open remote URLs directly, 
but that doesn't work yet.

-- 
David Given
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to