diff -r adbe7d5ba2f5 -r 45e72b57a2fd videoplayback/videohelix/src/mpxvideoplaybackstate.cpp --- a/videoplayback/videohelix/src/mpxvideoplaybackstate.cpp Wed Jun 23 18:14:16 2010 +0300 +++ b/videoplayback/videohelix/src/mpxvideoplaybackstate.cpp Tue Jul 06 14:17:50 2010 +0300 @@ -16,7 +16,7 @@ */ -// Version : %version: 45 % +// Version : %version: 47 % // @@ -1275,6 +1275,16 @@ CommandHandleForeground(); } +// ------------------------------------------------------------------------------------------------ +// CMPXInitialisedState::HandlePause() +// ------------------------------------------------------------------------------------------------ +void CMPXInitialisedState::HandlePause() +{ + MPX_ENTER_EXIT(_L("CMPXInitialisedState::HandlePause()")); + + iVideoPlaybackCtlr->iPlaybackMode->HandlePause(); +} + // ************************************************************************************************* // // CMPXPlayingState @@ -1638,6 +1648,14 @@ { IssuePlayCommand( EMPXVideoPlaying, MMPXPlaybackPluginObserver::EPPlaying, EFalse ); } + else + { + // As the custom play command could not resume the playback. Send a pause event to + // the view though the MPX FW to get the view state in sync playback plugin. + iVideoPlaybackCtlr->iMPXPluginObs->HandlePluginEvent( MMPXPlaybackPluginObserver::EPPaused, + 0, + KErrNone ); + } } // -------------------------------------------------------------------------------------------------