videoplayback/videohelix/src/mpxvideoplaybackstate.cpp
branchRCL_3
changeset 10 112a725ff2c2
parent 9 5294c000a26d
child 11 8970fbd719ec
equal deleted inserted replaced
9:5294c000a26d 10:112a725ff2c2
    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: 35 %
    18 // Version : %version: e003sa33#36 %
    19 
    19 
    20 
    20 
    21 //
    21 //
    22 //  INCLUDE FILES
    22 //  INCLUDE FILES
    23 //
    23 //
   988             MPX_DEBUG(_L("CMPXInitialisingState::HandleOpenComplete()  iSavedPosition %d"), iVideoPlaybackCtlr->iSavedPosition );
   988             MPX_DEBUG(_L("CMPXInitialisingState::HandleOpenComplete()  iSavedPosition %d"), iVideoPlaybackCtlr->iSavedPosition );
   989                 
   989                 
   990             TInt64 pos( iVideoPlaybackCtlr->iSavedPosition );
   990             TInt64 pos( iVideoPlaybackCtlr->iSavedPosition );
   991             pos *= KPbMilliMultiplier;
   991             pos *= KPbMilliMultiplier;
   992             
   992             
   993             iVideoPlaybackCtlr->iPlayer->SetPositionL( pos );
   993             MPX_TRAPD( err, iVideoPlaybackCtlr->iPlayer->SetPositionL( pos ) );
   994         }
   994         }
   995                
   995                
   996         MPX_DEBUG(_L("CMPXInitialisingState::HandleOpenComplete()  Sending Prepare()"));
   996         MPX_DEBUG(_L("CMPXInitialisingState::HandleOpenComplete()  Sending Prepare()"));
   997 
   997 
   998         iVideoPlaybackCtlr->iPlayer->Prepare();
   998         iVideoPlaybackCtlr->iPlayer->Prepare();
  1574     {
  1574     {
  1575         iVideoPlaybackCtlr->iState->HandlePlay();
  1575         iVideoPlaybackCtlr->iState->HandlePlay();
  1576     }
  1576     }
  1577     else
  1577     else
  1578     {
  1578     {
  1579         iVideoPlaybackCtlr->iPlayer->RefreshFrameL();
  1579         MPX_TRAPD( err, iVideoPlaybackCtlr->iPlayer->RefreshFrameL() );
  1580     }
  1580     }
  1581 }
  1581 }
  1582 
  1582 
  1583 //  ------------------------------------------------------------------------------------------------
  1583 //  ------------------------------------------------------------------------------------------------
  1584 //    CMPXPausedState::HandleCustomPlay()
  1584 //    CMPXPausedState::HandleCustomPlay()