videoplayback/videohelix/src/mpxvideoplaybackcontroller.cpp
branchRCL_3
changeset 70 375929f879c2
parent 64 3eb824b18d67
equal deleted inserted replaced
64:3eb824b18d67 70:375929f879c2
    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: 66 %
    19 // Version : %version: 64 %
    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 
       
   173     iSavedPosition = 0;
   170     iSavedPosition = 0;
   174     iViewActivated  = EFalse;
   171     iViewActivated  = EFalse;
   175 }
   172 }
   176 
   173 
   177 //  ----------------------------------------------------------------------------
   174 //  ----------------------------------------------------------------------------
   291     delete iPlayingState;
   288     delete iPlayingState;
   292     delete iBufferingState;
   289     delete iBufferingState;
   293     delete iPausedState;
   290     delete iPausedState;
   294     delete iSeekingState;
   291     delete iSeekingState;
   295     delete iStoppedState;
   292     delete iStoppedState;
   296 
       
   297     if ( iCallDetector )
       
   298     {
       
   299         iCallDetector->Cancel();
       
   300 
       
   301         delete iCallDetector;
       
   302         iCallDetector = NULL;
       
   303     }
       
   304 
   293 
   305     if ( iPlaybackMode )
   294     if ( iPlaybackMode )
   306     {
   295     {
   307         delete iPlaybackMode;
   296         delete iPlaybackMode;
   308         iPlaybackMode = NULL;
   297         iPlaybackMode = NULL;
   928 //  ------------------------------------------------------------------------------------------------
   917 //  ------------------------------------------------------------------------------------------------
   929 //  CMPXVideoPlaybackController::SetMuteCenRepL
   918 //  CMPXVideoPlaybackController::SetMuteCenRepL
   930 //  ------------------------------------------------------------------------------------------------
   919 //  ------------------------------------------------------------------------------------------------
   931 void CMPXVideoPlaybackController::SetMuteCenRepL( TBool aMute )
   920 void CMPXVideoPlaybackController::SetMuteCenRepL( TBool aMute )
   932 {
   921 {
   933     if ( iFileDetails && iFileDetails->iAudioEnabled )
   922     if ( iFileDetails && iFileDetails->iAudioEnabled && !iAccessoryMonitor->IsTvOutConnected() )
   934     {
   923     {
   935         iMuteWatcher->SetValueL( aMute );
   924         iMuteWatcher->SetValueL( aMute );
   936 
   925 
   937         MPX_DEBUG(_L("CMPXVideoPlaybackController::SetMuteCenRepL(): Mute = %d"), aMute );
   926         MPX_DEBUG(_L("CMPXVideoPlaybackController::SetMuteCenRepL(): Mute = %d"), aMute );
   938     }
   927     }
  2560 {
  2549 {
  2561     MPX_DEBUG(_L("CMPXVideoPlaybackController::HandleFrameReady"));
  2550     MPX_DEBUG(_L("CMPXVideoPlaybackController::HandleFrameReady"));
  2562 
  2551 
  2563     iPlaybackMode->HandleFrameReady(aError);
  2552     iPlaybackMode->HandleFrameReady(aError);
  2564 }
  2553 }
  2565 
       
  2566 void CMPXVideoPlaybackController::CallDetectedL()
       
  2567 {
       
  2568     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackController::CallDetectedL"));
       
  2569 
       
  2570     // Pause playback
       
  2571     DoHandleCommandL( EPbCmdPause );
       
  2572 }
       
  2573 
       
  2574 // End of file
  2554 // End of file