Re: OpenCode potential error while streaming

2009-01-21 Thread OOD Tsen
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&star

Re: OpenCode potential error while streaming

2009-01-21 Thread Dave Sparks
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 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/

Re: OpenCode potential error while streaming

2009-01-21 Thread OOD Tsen
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 ca

Re: OpenCode potential error while streaming

2009-01-14 Thread rktb
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"

OpenCode potential error while streaming

2009-01-14 Thread OOD Tsen
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.Media