Re:
Thanks for the quick reply.

This is a piece of log, MediaPlayer::stop() is called in state 4
( MEDIA_PLAYER_PREPARING )  at "12-13 08:41:38.544"

====================
12-13 08:41:38.124 I/youtube (24556): getHttpData URL:
http://gdata.youtube.com/feeds/videos/eKRAQh1Rdu0/related?format=2&start-index=1&max-results=9
multiURLs: null
12-13 08:41:38.354 I/MediaPlayer-JNI(24556): prepareAsync:
surface=0x249e78 (id=1)
12-13 08:41:38.534 I/ActivityManager(   52): Displayed activity
com.google.android.youtube/.YouTubePlayer: 930 ms
12-13 08:41:38.544 E/MediaPlayer(24556): stop called in state 4
12-13 08:41:38.664 W/MediaPlayer(24556): mediaplayer went away with
unhandled events
====================

The state from MEDIA_PLAYER_PREPARING  to MEDIA_PLAYER_PREPARED  is
unsafe.

On Jan 22, 3:05 am, Dave Sparks <[email protected]> wrote:
> You cannot send a pause during preparing state. The only command that
> will be accepted is reset.
>
> On Jan 21, 5:14 am, OOD Tsen <[email protected]> wrote:
>
> > Re:
>
> > I saw the code,but I still get the error message in state
> > MEDIA_PLAYER_PREPARING.
> > I think in the "/cupcake/frameworks/base/core/java/android/widget/
> > MediaController.java"
> > MediaController get player state by async function isPlaying() and it
> > may not up to date.
>
> > And  the MediaController may call setProgress() in wrong state.
>
> > I think class MediaController may not good enough for streaming . We
> > need more informations from opencore .
>
> > OOD Tsen
>
> > On Jan 15, 3:12 pm, rktb <[email protected]> wrote:
>
> > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to