--- a/videoplayback/videoplaybackview/viewsrc/mpxvideoviewwrapper.cpp Thu Sep 02 20:28:16 2010 +0300
+++ b/videoplayback/videoplaybackview/viewsrc/mpxvideoviewwrapper.cpp Fri Sep 17 08:30:05 2010 +0300
@@ -15,7 +15,7 @@
*
*/
-// Version : %version: da1mmcf#45 %
+// Version : %version: da1mmcf#47 %
@@ -125,7 +125,7 @@
//
// Create user input handler
//
- iUserInputHandler = CVideoPlaybackUserInputHandler::NewL( this, iFileDetails->mTvOutConnected );
+ iUserInputHandler = CVideoPlaybackUserInputHandler::NewL( this );
}
// -------------------------------------------------------------------------------------------------
@@ -581,11 +581,6 @@
cmdId = EControlCmdTvOutConnected;
}
- if ( iUserInputHandler )
- {
- TRAP_IGNORE(iUserInputHandler->HandleTVOutEventL( tvOutConnected ));
- }
-
if ( iControlsController )
{
iControlsController->handleEvent( cmdId );
@@ -1271,13 +1266,19 @@
MPX_ENTER_EXIT(_L("CMPXVideoViewWrapper::IssueVideoAppForegroundCmdL()"),
_L("aViewForeground = %d, aAppForegournd = %d"), aViewForeground, aAppForegournd );
+ iUserInputHandler->SetForeground( aAppForegournd );
+
TMPXVideoPlaybackCommand videoCmd = EPbCmdHandleBackground;
+ TVideoPlaybackControlCommandIds controlsCmd = EControlCmdHandleBackgroundEvent;
if ( aViewForeground )
{
videoCmd = EPbCmdHandleForeground;
+ controlsCmd = EControlCmdHandleForegroundEvent;
}
+ iControlsController->handleEvent( controlsCmd );
+
//
// create command to pass to playback plugin
//