Res: What is Mediaplayer.[..] onBufferingUpdate actually telling me?

by Luiz Fabiano Cruz » Thu, 30 Jul 2009 01:20:59 GMT

Sponsored Links

You don't get updates because your player is consuming the media data, so as 
soon as the data is arrived (from remote source) it's being played.
try to pause for a while to see what happens. 
the idea is don't let the buffer gets empty or you will have to restart the 
player (i'm not sure this happens in android, it DOES in java).


De: zero <>
Para: Android Developers <>
Enviadas: Quarta-feira, 29 de Julho de 2009 11:31:12
Assunto: [android-developers] What is Mediaplayer.[..] onBufferingUpdate 
actually telling me?

Hi all

I'm trying to play streamed mp3 from a remote source. basically it
works, but the behaviour of the bufferingupdate listener is a riddle
to me. I either get no calls at all, or updates like 1% , 2% then
nothing more. music is playing already, but the buffering never goes
to 100%.  which i think is the cause for getting "unknown mediaplayer
errors" after calling pause/stop and then start again.

so, ??? ideas ??


Veja quais so os assuntos do momento no Yahoo! +Buscados 

Other Threads

1. Reported memory usage

So I think I've finally plugged all my memory leaks (tip: watch out for 
Handlers which outlive your Activity), and overall, my apps seem to be doing 
pretty well in this regard. But in the last couple of days I've had a user 
complaining that one app is using far too much memory, and furthermore that 
it gets worse as the app is running longer (it has a clock widgets, so it'll 
stay resident in memory if things aren't too tight). He's saying 
it's frequently at 40-50MB, and will climb over 80MB. 

Now, you and I both know that this isn't possible given the constraints of 
the Dalvik heap. Following up with this user, I learn that he's getting 
these numbers from Process Monitor Widget (PMW), and sure enough, when I 
install it I see something similar. I reached out to the dev of PMW, and he 
informs me that he's getting the figures "from the kernel process 
description file located @ /proc/$pid/stat." Not being a Linux kernel guy, 
I'm not well versed on such matters, but I'm strongly suspecting that it's 
not valid for Dalvik processes.

For example: right now the app in question on my N1 is showing 57MB in PMW, 
while a heap dump in DDMS shows 3.4MB. This latter number seems quite 
reasonable to me, but I don't feel OK in just going back to this user and 
saying "PWM, and other apps of its ilk, are just wrong." That could easily 
develop into a "he said, she said" situation.

So, I'm hoping somebody here - ideally someone on the framework team (you 
here, Romain? ;^) ) - can speak more authoritatively about this. And 
hopefully, other devs that face this situation in the future can be better 
equipped to deal with it. Anyone?



2. How to get the list of notifications dispalyed on status bar......

Hi all

Is it possible to retrieve the list of notifications/updates displayed
on status bar?Does notification manger keeps a track of whatever
notifications it displays and stores them somewhere if yes then can we
get the list of notifications displayed?


3. How to load resources like texture images & sound files in native code?

4. Android Test Market

5. why doesn't google provide us a pure C/C++ SDK for android?

6. Dynamically build status bar icon from layers in Java, but can't figure-out resource ID

7. Problem with audio recording