videoplayback/videoplaybackview/viewsrc/mpxvideoviewwrapper.cpp
changeset 62 0e1e938beb1a
parent 59 a76e86df7ccd
child 65 a9d57bd8d7b7
equal deleted inserted replaced
59:a76e86df7ccd 62:0e1e938beb1a
    13 *
    13 *
    14 * Description:   Implementation of Video base playback view
    14 * Description:   Implementation of Video base playback view
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: da1mmcf#45 %
    18 // Version : %version: da1mmcf#47 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 //  Include Files
    22 //  Include Files
    23 
    23 
   123     CreateControlsL();
   123     CreateControlsL();
   124 
   124 
   125     //
   125     //
   126     // Create user input handler
   126     // Create user input handler
   127     //
   127     //
   128     iUserInputHandler = CVideoPlaybackUserInputHandler::NewL( this, iFileDetails->mTvOutConnected );
   128     iUserInputHandler = CVideoPlaybackUserInputHandler::NewL( this );
   129 }
   129 }
   130 
   130 
   131 // -------------------------------------------------------------------------------------------------
   131 // -------------------------------------------------------------------------------------------------
   132 // CMPXVideoViewWrapper::~CMPXVideoViewWrapper()
   132 // CMPXVideoViewWrapper::~CMPXVideoViewWrapper()
   133 // -------------------------------------------------------------------------------------------------
   133 // -------------------------------------------------------------------------------------------------
   577             TBool tvOutConnected( *aMessage->Value<TInt>( KMPXMediaVideoTvOutConnected ) );
   577             TBool tvOutConnected( *aMessage->Value<TInt>( KMPXMediaVideoTvOutConnected ) );
   578 
   578 
   579             if ( tvOutConnected )
   579             if ( tvOutConnected )
   580             {
   580             {
   581                 cmdId = EControlCmdTvOutConnected;
   581                 cmdId = EControlCmdTvOutConnected;
   582             }
       
   583 
       
   584             if ( iUserInputHandler )
       
   585             {
       
   586                 TRAP_IGNORE(iUserInputHandler->HandleTVOutEventL( tvOutConnected ));
       
   587             }
   582             }
   588 
   583 
   589             if ( iControlsController )
   584             if ( iControlsController )
   590             {
   585             {
   591                 iControlsController->handleEvent( cmdId );
   586                 iControlsController->handleEvent( cmdId );
  1269 void CMPXVideoViewWrapper::IssueVideoAppForegroundCmdL( TBool aViewForeground, TBool aAppForegournd )
  1264 void CMPXVideoViewWrapper::IssueVideoAppForegroundCmdL( TBool aViewForeground, TBool aAppForegournd )
  1270 {
  1265 {
  1271     MPX_ENTER_EXIT(_L("CMPXVideoViewWrapper::IssueVideoAppForegroundCmdL()"),
  1266     MPX_ENTER_EXIT(_L("CMPXVideoViewWrapper::IssueVideoAppForegroundCmdL()"),
  1272                    _L("aViewForeground = %d, aAppForegournd = %d"), aViewForeground, aAppForegournd );
  1267                    _L("aViewForeground = %d, aAppForegournd = %d"), aViewForeground, aAppForegournd );
  1273 
  1268 
       
  1269     iUserInputHandler->SetForeground( aAppForegournd );
       
  1270     
  1274     TMPXVideoPlaybackCommand videoCmd = EPbCmdHandleBackground;
  1271     TMPXVideoPlaybackCommand videoCmd = EPbCmdHandleBackground;
       
  1272     TVideoPlaybackControlCommandIds controlsCmd = EControlCmdHandleBackgroundEvent;
  1275 
  1273 
  1276     if ( aViewForeground )
  1274     if ( aViewForeground )
  1277     {
  1275     {
  1278         videoCmd = EPbCmdHandleForeground;
  1276         videoCmd = EPbCmdHandleForeground;
  1279     }
  1277         controlsCmd = EControlCmdHandleForegroundEvent;
       
  1278     }
       
  1279 
       
  1280     iControlsController->handleEvent( controlsCmd );
  1280 
  1281 
  1281     //
  1282     //
  1282     //  create command to pass to playback plugin
  1283     //  create command to pass to playback plugin
  1283     //
  1284     //
  1284     CMPXCommand* cmd = CMPXCommand::NewL();
  1285     CMPXCommand* cmd = CMPXCommand::NewL();