videoplayback/videoplaybackview/viewsrc/mpxvideoviewwrapper.cpp
changeset 58 d2b028fd1f7d
parent 55 4bfa887905cf
child 63 4707a0db12f6
--- a/videoplayback/videoplaybackview/viewsrc/mpxvideoviewwrapper.cpp	Mon Aug 23 14:27:29 2010 +0300
+++ b/videoplayback/videoplaybackview/viewsrc/mpxvideoviewwrapper.cpp	Fri Sep 03 12:37:43 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
     //