videoplayback/videohelix/src/mpxvideoplaybackmode.cpp
branchRCL_3
changeset 12 7f2b2a65da29
parent 11 8970fbd719ec
child 14 55fa1ec415c6
equal deleted inserted replaced
11:8970fbd719ec 12:7f2b2a65da29
    13 *
    13 *
    14 * Description:  This class plays local video file
    14 * Description:  This class plays local video file
    15  *
    15  *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 22 %
    18 // Version : %version: 23 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 //
    22 //
    23 //  INCLUDE FILES
    23 //  INCLUDE FILES
   177 {
   177 {
   178     MPX_DEBUG(_L("CMPXVideoPlaybackMode::HandleBackground()"));
   178     MPX_DEBUG(_L("CMPXVideoPlaybackMode::HandleBackground()"));
   179 
   179 
   180     if ( iVideoPlaybackCtlr->iAppInForeground )
   180     if ( iVideoPlaybackCtlr->iAppInForeground )
   181     {
   181     {
   182         if ( iVideoPlaybackCtlr->IsAlarm() ||
   182         if ( iVideoPlaybackCtlr->IsAlarm() )
   183              ( iVideoPlaybackCtlr->IsKeyLocked() && iVideoPlaybackCtlr->iFileDetails->iVideoEnabled ) )
       
   184         {
   183         {
   185             iVideoPlaybackCtlr->iForegroundPause = ETrue;
   184             iVideoPlaybackCtlr->iForegroundPause = ETrue;
   186             iVideoPlaybackCtlr->iState->HandlePause();
   185             iVideoPlaybackCtlr->iState->HandlePause();
       
   186         }
       
   187         else if ( iVideoPlaybackCtlr->IsKeyLocked() && iVideoPlaybackCtlr->iFileDetails->iVideoEnabled )
       
   188         {
       
   189             iVideoPlaybackCtlr->iForegroundPause = ETrue;
       
   190             iVideoPlaybackCtlr->iState->HandlePause();
       
   191             iVideoPlaybackCtlr->SendHideControlsEventL();
   187         }
   192         }
   188         else if ( iVideoPlaybackCtlr->IsPhoneCall() || iVideoPlaybackCtlr->IsVideoCall() )
   193         else if ( iVideoPlaybackCtlr->IsPhoneCall() || iVideoPlaybackCtlr->IsVideoCall() )
   189         {
   194         {
   190             iVideoPlaybackCtlr->iForegroundPause = EFalse;
   195             iVideoPlaybackCtlr->iForegroundPause = EFalse;
   191             iVideoPlaybackCtlr->iState->HandlePause();
   196             iVideoPlaybackCtlr->iState->HandlePause();