videoplayback/videoplaybackviews/src/mpxvideobaseplaybackview.cpp
branchRCL_3
changeset 15 8f0df5c82986
parent 14 55fa1ec415c6
child 16 67eb01668b0e
equal deleted inserted replaced
14:55fa1ec415c6 15:8f0df5c82986
    14 * Description:   Implementation of Video base playback view
    14 * Description:   Implementation of Video base playback view
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: 77 %
    19 // Version : %version: 79 %
    20 
    20 
    21 
    21 
    22 //  Include Files
    22 //  Include Files
    23 
    23 
    24 #include <aknViewAppUi.h>
    24 #include <aknViewAppUi.h>
  1365             if ( iClipName )
  1365             if ( iClipName )
  1366             {
  1366             {
  1367                 delete iClipName;
  1367                 delete iClipName;
  1368                 iClipName = NULL;
  1368                 iClipName = NULL;
  1369             }
  1369             }
  1370             
  1370 
  1371             TPtrC uri( aMedia.ValueText( KMPXMediaGeneralUri ) );
  1371             TPtrC uri( aMedia.ValueText( KMPXMediaGeneralUri ) );
  1372             iClipName = uri.AllocL();
  1372             iClipName = uri.AllocL();
  1373         }
  1373         }
  1374 
  1374 
  1375         if ( aMedia.IsSupported( KMPXMediaVideoError ) )
  1375         if ( aMedia.IsSupported( KMPXMediaVideoError ) )
  2206 
  2206 
  2207         TUint visible = aEvent.VisibilityChanged()->iFlags;
  2207         TUint visible = aEvent.VisibilityChanged()->iFlags;
  2208 
  2208 
  2209         if ( visible & TWsVisibilityChangedEvent::ENotVisible )
  2209         if ( visible & TWsVisibilityChangedEvent::ENotVisible )
  2210         {
  2210         {
  2211             MPX_DEBUG(_L("CMpxVideoPlayerAppUi::HandleWsEventL() ENotVisible"));
  2211             MPX_DEBUG(_L("CMPXVideoBasePlaybackView::HandleWsEventL() ENotVisible"));
       
  2212             SendWindowCommandL( EPbCmdHandleBackground );
       
  2213         }
       
  2214         else if ( ! IsAppInFrontL() )
       
  2215         {
       
  2216             MPX_DEBUG(_L("CMPXVideoBasePlaybackView::HandleWsEventL() App in Background"));
  2212             SendWindowCommandL( EPbCmdHandleBackground );
  2217             SendWindowCommandL( EPbCmdHandleBackground );
  2213         }
  2218         }
  2214     }
  2219     }
  2215 }
  2220 }
  2216 
  2221 
  2256         //
  2261         //
  2257         if ( aLastState != EPbStateNotInitialised )
  2262         if ( aLastState != EPbStateNotInitialised )
  2258         {
  2263         {
  2259             iMediaRequested = EFalse;
  2264             iMediaRequested = EFalse;
  2260 
  2265 
       
  2266             //
       
  2267             //  Refresh the screen by removing the surface and resetting the controls
       
  2268             //
       
  2269             iDisplayHandler->RemoveDisplayWindow();
  2261             iContainer->HandleCommandL( EMPXPbvCmdResetControls );
  2270             iContainer->HandleCommandL( EMPXPbvCmdResetControls );
  2262 
  2271 
  2263             if ( iFileDetails )
  2272             if ( iFileDetails )
  2264             {
  2273             {
  2265                 if ( iFileDetailsDialog )
  2274                 if ( iFileDetailsDialog )