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:\\www.wha.com\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
playing?


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?

-Thanks!
Moto!
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. r customizing aosp settings section

hello, im trying to build aosp for my devkit, and i'd like to know where
should i look to for
1 - to changing font size of texts in settings section ( i'v replaced droid
fonts with another one but the new font kind large) or global font setting.
2 - to change position of texts in settings section ( usually all texts are
in left side, i want to try and put it in right side for example).
3 - the language locale names that showed in settings/language &
keyboards.. where are they stored . i looked into LocalePicker.java but
could not figure it out
for exmaple i want to change a locale name from english to it's native
languge ( in some android builds i'v saw arabic locale was in english , and

some other builds it was shown in native arabic ).

-- 

2. animate part of the app widget

Hi all,
is it possible to animate part of an app widget? for example, there is a
text string, an image, and a number in my widget, I want to animate the
number or image in the widget, which is only part of whole widget on the
home screen. does it possible on Honeycomb?

-- 

3. Problem with Cursor Adapter

4. drag and drop only between views in the same layout?

5. Extended MapView

6. change background color of particular line in textview or edittext

7. android graphs