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. javamail-android error

Well i had studied javamail and trying in android but while i am
running the code i m getting error ...

05-06 10:07:45.160: ERROR/Mail app(602):
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a
STARTTLS command first. q5sm1883105pbp.65
05-06 10:07:45.160: ERROR/Mail app(602):     at
com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1515)
05-06 10:07:45.160: ERROR/Mail app(602):     at
com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1054)
05-06 10:07:45.160: ERROR/Mail app(602):     at
com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:634)
05-06 10:07:45.160: ERROR/Mail app(602):     at
javax.mail.Transport.send0(Transport.java:189)
05-06 10:07:45.160: ERROR/Mail app(602):     at
javax.mail.Transport.send(Transport.java:118)
05-06 10:07:45.160: ERROR/Mail app(602):     at
com.livesoft.user.mail.Main$1.onClick(Main.java:49)
05-06 10:07:45.160: ERROR/Mail app(602):     at
android.view.View.performClick(View.java:2408)
05-06 10:07:45.160: ERROR/Mail app(602):     at
android.view.View$PerformClick.run(View.java:8816)
05-06 10:07:45.160: ERROR/Mail app(602):     at
android.os.Handler.handleCallback(Handler.java:587)
05-06 10:07:45.160: ERROR/Mail app(602):     at
android.os.Handler.dispatchMessage(Handler.java:92)
05-06 10:07:45.160: ERROR/Mail app(602):     at
android.os.Looper.loop(Looper.java:123)
05-06 10:07:45.160: ERROR/Mail app(602):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
05-06 10:07:45.160: ERROR/Mail app(602):     at
java.lang.reflect.Method.invokeNative(Native Method)
05-06 10:07:45.160: ERROR/Mail app(602):     at
java.lang.reflect.Method.invoke(Method.java:521)
05-06 10:07:45.160: ERROR/Mail app(602):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-06 10:07:45.160: ERROR/Mail app(602):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-06 10:07:45.160: ERROR/Mail app(602):     at
dalvik.system.NativeStart.main(Native Method)




here is my code :
addImage.setOnClickListener(new OnClickListener(){

                        public void onClick(View arg0) {
                                // TODO Auto-generated method stub
                                String host= "smtp.gmail.com";
                                String to="ratnesh10.in...@gmail.com";
                                String from = "ratnesh10.in...@gmail.com";
                                
                                Properties props= new Properties();
                                props.setProperty("mail.smtp.host", host);    
// Getting error here
                                
                                Session session = 
Session.getDefaultInstance(props);
                                try{
                                        MimeMessage msg =  new 
MimeMessage(session);
                                        msg.setFrom(new InternetAddress(from));
                                        
msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
                                        msg.setSubject("Hi..");
                                        msg.setText("Test mail");
                                        Transport.send(msg);
                                        Toast.makeText(Main.this, "Email send 
succesfully",
Toast.LENGTH_LONG).show();
                                }
                        catch(Exception e){
                                Log.e("Mail app","there is problem in sending 
mail",e);
                        }
                        }
                });



please help me

I need help urgently ....

-- 

2. help, error: "The application myapp has stopped unexpectedly. please try again"

Why are you calling system.exit(0)?  I can't think of a single case in
Android where you would want to do that (Doesn't mean there isn't a case...
I've just never come across the need).

What does your logcat output say in regards to the error?

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware






-- 

3. Is there a way we can send sensor events just like key events?

4. scrolling a large image

5. Penampak Boss AH@Starbuck Ngurah Rai

6. eclipse locale setting

7. Building app with ant, java resource files (not android) are not added...