videoplayback/videohelix/src/mpxvideoplaybackcontroller.cpp
changeset 58 d2b028fd1f7d
parent 50 21fe8338c6bf
equal deleted inserted replaced
55:4bfa887905cf 58:d2b028fd1f7d
    14 * Description:  This class plays local video file
    14 * Description:  This class plays local video file
    15  *
    15  *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: 65 %
    19 // Version : %version: 66 %
    20 
    20 
    21 
    21 
    22 //
    22 //
    23 //  INCLUDE FILES
    23 //  INCLUDE FILES
    24 //
    24 //
   165 
   165 
   166     iBackLightTimer = CPeriodic::NewL( CActive::EPriorityStandard );
   166     iBackLightTimer = CPeriodic::NewL( CActive::EPriorityStandard );
   167 
   167 
   168     iDrmHelper = CMpxVideoDrmHelper::NewL();
   168     iDrmHelper = CMpxVideoDrmHelper::NewL();
   169 
   169 
       
   170     iCallDetector = CMPXCallDetector::NewL( this );
       
   171     iCallDetector->RequestNotification();
       
   172 
   170     iSavedPosition = 0;
   173     iSavedPosition = 0;
   171     iViewActivated  = EFalse;
   174     iViewActivated  = EFalse;
   172 }
   175 }
   173 
   176 
   174 //  ----------------------------------------------------------------------------
   177 //  ----------------------------------------------------------------------------
   288     delete iPlayingState;
   291     delete iPlayingState;
   289     delete iBufferingState;
   292     delete iBufferingState;
   290     delete iPausedState;
   293     delete iPausedState;
   291     delete iSeekingState;
   294     delete iSeekingState;
   292     delete iStoppedState;
   295     delete iStoppedState;
       
   296 
       
   297     if ( iCallDetector )
       
   298     {
       
   299         iCallDetector->Cancel();
       
   300 
       
   301         delete iCallDetector;
       
   302         iCallDetector = NULL;
       
   303     }
   293 
   304 
   294     if ( iPlaybackMode )
   305     if ( iPlaybackMode )
   295     {
   306     {
   296         delete iPlaybackMode;
   307         delete iPlaybackMode;
   297         iPlaybackMode = NULL;
   308         iPlaybackMode = NULL;
  2549 {
  2560 {
  2550     MPX_DEBUG(_L("CMPXVideoPlaybackController::HandleFrameReady"));
  2561     MPX_DEBUG(_L("CMPXVideoPlaybackController::HandleFrameReady"));
  2551 
  2562 
  2552     iPlaybackMode->HandleFrameReady(aError);
  2563     iPlaybackMode->HandleFrameReady(aError);
  2553 }
  2564 }
       
  2565 
       
  2566 void CMPXVideoPlaybackController::CallDetectedL()
       
  2567 {
       
  2568     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackController::CallDetectedL"));
       
  2569 
       
  2570     // Pause playback
       
  2571     DoHandleCommandL( EPbCmdPause );
       
  2572 }
       
  2573 
  2554 // End of file
  2574 // End of file