videoplayback/videohelix/src/mpxvideoplaybackstate.cpp
branchRCL_3
changeset 11 5294c000a26d
parent 6 7d91903f795f
child 13 112a725ff2c2
equal deleted inserted replaced
10:ce5ada96ab30 11:5294c000a26d
    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: 33 %
    18 // Version : %version: 35 %
    19 
    19 
    20 
    20 
    21 //
    21 //
    22 //  INCLUDE FILES
    22 //  INCLUDE FILES
    23 //
    23 //
   977         _L("error = %d"), aError );
   977         _L("error = %d"), aError );
   978 
   978 
   979     if ( aError == KErrNone )
   979     if ( aError == KErrNone )
   980     {
   980     {
   981         iVideoPlaybackCtlr->iPlaybackMode->HandleOpenComplete();
   981         iVideoPlaybackCtlr->iPlaybackMode->HandleOpenComplete();
   982 
   982 		
       
   983         //
       
   984 		//  call setposition with converted value saved in openfile
       
   985         //
       
   986 		if ( iVideoPlaybackCtlr->iSavedPosition > 0 )
       
   987         {    
       
   988             MPX_DEBUG(_L("CMPXInitialisingState::HandleOpenComplete()  iSavedPosition %d"), iVideoPlaybackCtlr->iSavedPosition );
       
   989                 
       
   990             TInt64 pos( iVideoPlaybackCtlr->iSavedPosition );
       
   991             pos *= KPbMilliMultiplier;
       
   992             
       
   993             iVideoPlaybackCtlr->iPlayer->SetPositionL( pos );
       
   994         }
       
   995                
   983         MPX_DEBUG(_L("CMPXInitialisingState::HandleOpenComplete()  Sending Prepare()"));
   996         MPX_DEBUG(_L("CMPXInitialisingState::HandleOpenComplete()  Sending Prepare()"));
   984 
   997 
   985         iVideoPlaybackCtlr->iPlayer->Prepare();
   998         iVideoPlaybackCtlr->iPlayer->Prepare();
   986     }
   999     }
   987     else
  1000     else
  1874 //    CMPXSeekingState::HandleBackground()
  1887 //    CMPXSeekingState::HandleBackground()
  1875 //  ------------------------------------------------------------------------------------------------
  1888 //  ------------------------------------------------------------------------------------------------
  1876 void CMPXSeekingState::HandleBackground()
  1889 void CMPXSeekingState::HandleBackground()
  1877 {
  1890 {
  1878     MPX_DEBUG(_L("CMPXSeekingState::HandleBackground()"));
  1891     MPX_DEBUG(_L("CMPXSeekingState::HandleBackground()"));
  1879     MPX_TRAPD( err, iVideoPlaybackCtlr->iState->HandleStopSeekL() );
  1892     MPX_TRAPD( err, HandleStopSeekL() );
  1880     iVideoPlaybackCtlr->iPlaybackMode->HandleBackground();
  1893     iVideoPlaybackCtlr->iPlaybackMode->HandleBackground();
  1881 }
  1894 }
  1882 
  1895 
  1883 //  ------------------------------------------------------------------------------------------------
  1896 //  ------------------------------------------------------------------------------------------------
  1884 //  CMPXSeekingState::HandlePause()
  1897 //  CMPXSeekingState::HandlePause()
  1885 //  ------------------------------------------------------------------------------------------------
  1898 //  ------------------------------------------------------------------------------------------------
  1886 void CMPXSeekingState::HandlePause()
  1899 void CMPXSeekingState::HandlePause()
  1887 {
  1900 {
  1888     MPX_DEBUG(_L("CMPXSeekingState::HandlePause()"));
  1901     MPX_DEBUG(_L("CMPXSeekingState::HandlePause()"));
       
  1902     MPX_TRAPD( err, HandleStopSeekL() );
  1889     iVideoPlaybackCtlr->iPlaybackMode->HandlePause();
  1903     iVideoPlaybackCtlr->iPlaybackMode->HandlePause();
  1890 }
  1904 }
  1891 
  1905 
  1892 //  ------------------------------------------------------------------------------------------------
  1906 //  ------------------------------------------------------------------------------------------------
  1893 //  CMPXSeekingState::HandleStopSeekL()
  1907 //  CMPXSeekingState::HandleStopSeekL()