Hi, Yes, the transition between MEDIA_PLAYER_PREPARING to MEDIA_PLAYER_PREPARED is asynchronous. This is done because "Preparing" a clip for playback may take some amount of time, and it is not desired to block the application during that time. The application needs to set the "prepared listener", wait for the callback, and then issue a Start.
-Ravi On Jan 15, 11:49 am, OOD Tsen <[email protected]> wrote: > I have a problem while streaming.This is a state diagram of > mCurrentState in "/cupcake/frameworks/base/media/libmedia/ > mediaplayer.cpp" > > http://docs.google.com/Doc?id=dhb4wxjx_167cn2jrbd7 > > 1.When we got a network error while streaming, mCurrentState will > reset to MEDIA_PLAYER_STATE_ERROR, > > 2.MediaPlayer will re-initialize in the following > sequence,MEDIA_PLAYER_STATE_ERROR -> MEDIA_PLAYER_INITIAZED -> > MEDIA_PLAYER_PREPARING -> MEDIA_PLAYER_PREPARING. > > 3.The transition from MEDIA_PLAYER_PREPARING to > MEDIA_PLAYER_PREPARING. is asynchronous and unprotected. > > 4.When we press play/pause button in the state- > MEDIA_PLAYER_PREPARING, we will got an error. > > Who knows who to fix it ? > > Thanks > Ood Tsen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---
