Android 1.5 - How does MediaPlayer know when to start playback?

by Moto » Thu, 30 Apr 2009 00:54:27 GMT

Sponsored Links
 Hi all I need some deep understanding on the MediaPlayer class.

Here are a couple questions:
1. How does the MediaPlayer class know when to start playback when
playing an external file x size ie. "http:\\\file.mp3"  at
what point does it say we got enough data lets start playback?  from
my experience this varies a lot depending on the connection speed of
the phone and also how the phone feels like...

2. How can I know that MediaPlayer is now stuck with internal
buffering and not playing audio anymore?  I would have assumed the
OnInfoListener would let us know something? or maybe when checking
IsPlaying() would return false since it's buffering and no audio is

would have been nice to have {Idle, Initialized, Prepared, Stopped,
PlaybackCompleted, Error, etc..} and add a state
"InternalBuffering" ?  and have access to this states...

Any other classes that would have access to this information?


Other Threads

1. Kenapa Acer Liquid Lebih dari (Sekedar) Android? [ Acer Smart Handheld "Liquid" Competition]

Mantap, sudah 3 tulisan :-)

Bro Aam, tolong kirim no KTP dan HP/Tlpn ke jalur pribadi saya:

Ayooo yang lain mana neh ....

2010/7/16 Aam haryadi <>

"Indonesian Android Community [id-android]" 

2. Fwd: Regarding R class in application project

---------- Forwarded message ----------
From: ameya dandekar <>
Date: Fri, Jul 16, 2010 at 12:02 PM
Subject: Regarding R class in application project

      I am currently working on application in which i use a library project
as android library and refer to its functionality in my application
project.But when i try to use a resource from library it gives error ...
" can not be resolved". Is it that i can not use the resouces and
layouts in library project, in app project ? What i need to do...?....
      I m currently using android 1.6 and ADT 0.9.7 that supports building a
library project.

Thanks and Regards,


3. Regarding R class in application project

4. closing multiple activities

5. Animasi Booting id-android - EVO+ Desir

6. Unable to start service

7. Keep accelerometer active