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

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


Sponsored Links
 hi,

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).

br
fabiano





________________________________
De: zero <zeroo...@googlemail.com>
Para: Android Developers <android-developers@googlegroups.com>
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 ??

zero



      
____________________________________________________________________________________
Veja quais so os assuntos do momento no Yahoo! +Buscados
 http://br.maisbuscados.yahoo.com 
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. ACTION_POWER_CONNECTED not working

Hi,
I'm developing an app that needs to start when the phone is power plugged.
To do so, I used this code in manifest file

<application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".Activity"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
<activity android:name=".Activity2"
 android:label="@string/app_name" />
<reciever android:name=".Receiver">
       <intent-filter>
               <action
android:name="android.intent.action.ACTION_POWER_CONNECTED" />
       </intent-filter>
</reciever>
    </application>

In Receiver file:

public class NoteReceiver extends BroadcastReceiver
{
@Override
public void onReceive(Context context, Intent intent)
{
context.startActivity(new Intent(context,Activity2.class));
}
}

This code was suposed to start the Activity2 Activity, but it's not working!
Does someone know that's wrong?
Thanks,
---------------------------------------------------
Douglas Fonseca
Engenharia da Computao 2010
Universidade Estadual de Campinas

-- 

2. Buying your own App, Testing Licensing

So, apparently i'm unable to buy my own app.
Two problems:

First is that it looks like Market wont accept my Google Apps
credentials even though I have a valid checkout account (including
merchant account).
This thread describes others having the same problem:
http://www.google.as/support/forum/p/Google+Apps/thread?tid=78d6fa09fc666151&hl=en&fid=78d6fa09fc666151000496d7189838f7

Also, I came across another bit of info saying that developers are
*not allowed* to buy their own apps re the Google Checkout policies.
The problem is that in order for licensing to be tested properly, not
to mention I actually want to *use* my own app (because i like it), I
need to get it through the Market. See:
http://market.android.com/support/bin/answer.py?hl=en&answer=141659

So, can someone riddle me this:
If the Market refuses to work with my existing account and I'm not
allowed to buy my own app anyway, how the heck am I supposed to use
and or test the darn thing using Licensing?

I might as well roll my own licensing API... at least then I know it
would work!

-- 

3. Application related data and cache options

4. root operations for Android porting

5. how to get root permissions to do a adb remount?

6. does anybody know how to copy files to the internal storage?

7. Display a dialog in landscape irrespective of current screen orientation