videoplayback/videohelix/src/mpxvideoplaybackstate.cpp
branchRCL_3
changeset 18 baf439b22ddd
parent 16 67eb01668b0e
child 20 2d690156cf8f
equal deleted inserted replaced
16:67eb01668b0e 18:baf439b22ddd
    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: 44 %
    19 // Version : %version: 45 %
    20 
    20 
    21 
    21 
    22 //
    22 //
    23 //  INCLUDE FILES
    23 //  INCLUDE FILES
    24 //
    24 //
  1369 {
  1369 {
  1370     MPX_DEBUG(_L("CMPXPlayingState::HandlePlayPause()"));
  1370     MPX_DEBUG(_L("CMPXPlayingState::HandlePlayPause()"));
  1371     HandlePause();
  1371     HandlePause();
  1372 }
  1372 }
  1373 
  1373 
  1374 
       
  1375 //  ------------------------------------------------------------------------------------------------
  1374 //  ------------------------------------------------------------------------------------------------
  1376 //    CMPXPlayingState::HandleSetPosterFrame()
  1375 //    CMPXPlayingState::HandleSetPosterFrame()
  1377 //  ------------------------------------------------------------------------------------------------
  1376 //  ------------------------------------------------------------------------------------------------
  1378 void CMPXPlayingState::HandleSetPosterFrame()
  1377 void CMPXPlayingState::HandleSetPosterFrame()
  1379 {
  1378 {
  1523 {
  1522 {
  1524     MPX_ENTER_EXIT(_L("CMPXPausedState::HandlePlay()"));
  1523     MPX_ENTER_EXIT(_L("CMPXPausedState::HandlePlay()"));
  1525 
  1524 
  1526     if ( iVideoPlaybackCtlr->iPlaybackMode->CanPlayNow() )
  1525     if ( iVideoPlaybackCtlr->iPlaybackMode->CanPlayNow() )
  1527     {
  1526     {
  1528         IssuePlayCommand( EMPXVideoPlaying, MMPXPlaybackPluginObserver::EPPlaying );
  1527         MPX_TRAPD( error, iVideoPlaybackCtlr->iPlaybackMode->HandlePauseToPlayTransitionL() );
  1529     }
  1528     }
  1530 }
  1529 }
  1531 
  1530 
  1532 //  ------------------------------------------------------------------------------------------------
  1531 //  ------------------------------------------------------------------------------------------------
  1533 //    CMPXPausedState::HandlePlayPause()
  1532 //    CMPXPausedState::HandlePlayPause()
  1639     {
  1638     {
  1640         IssuePlayCommand( EMPXVideoPlaying, MMPXPlaybackPluginObserver::EPPlaying, EFalse );
  1639         IssuePlayCommand( EMPXVideoPlaying, MMPXPlaybackPluginObserver::EPPlaying, EFalse );
  1641     }
  1640     }
  1642 }
  1641 }
  1643 
  1642 
       
  1643 // -------------------------------------------------------------------------------------------------
       
  1644 //   CMPXPausedState::HandleUnexpectedError
       
  1645 // -------------------------------------------------------------------------------------------------
       
  1646 //
       
  1647 void CMPXPausedState::HandleUnexpectedError( TInt aError )
       
  1648 {
       
  1649     MPX_ENTER_EXIT(_L("CMPXPausedState::HandleUnexpectedError()"),
       
  1650                    _L("aError = %d"), aError );
       
  1651 
       
  1652     if ( iVideoPlaybackCtlr->iPlaybackMode->SendErrorToView( aError ) )
       
  1653     {
       
  1654         MPX_TRAPD( err, SendErrorToViewL( aError ) );
       
  1655     }
       
  1656 }
       
  1657 
  1644 // *************************************************************************************************
  1658 // *************************************************************************************************
  1645 //
  1659 //
  1646 //                          CMPXStoppedState
  1660 //                          CMPXStoppedState
  1647 //
  1661 //
  1648 // *************************************************************************************************
  1662 // *************************************************************************************************
  1724 {
  1738 {
  1725     MPX_ENTER_EXIT(_L("CMPXStoppedState::ResolveTimeoutError()"),
  1739     MPX_ENTER_EXIT(_L("CMPXStoppedState::ResolveTimeoutError()"),
  1726                    _L("aError = %d"), aError );
  1740                    _L("aError = %d"), aError );
  1727 
  1741 
  1728     // Don't handle the error. Already in the stopped state
  1742     // Don't handle the error. Already in the stopped state
       
  1743 }
       
  1744 
       
  1745 // -------------------------------------------------------------------------------------------------
       
  1746 //   CMPXStoppedState::HandleUnexpectedError
       
  1747 // -------------------------------------------------------------------------------------------------
       
  1748 //
       
  1749 void CMPXStoppedState::HandleUnexpectedError( TInt aError )
       
  1750 {
       
  1751     MPX_ENTER_EXIT(_L("CMPXStoppedState::HandleUnexpectedError()"),
       
  1752                    _L("aError = %d"), aError );
       
  1753 
       
  1754     if ( iVideoPlaybackCtlr->iPlaybackMode->SendErrorToView( aError ) )
       
  1755     {
       
  1756         MPX_TRAPD( err, SendErrorToViewL( aError ) );
       
  1757     }
  1729 }
  1758 }
  1730 
  1759 
  1731 // *************************************************************************************************
  1760 // *************************************************************************************************
  1732 //
  1761 //
  1733 //                          CMPXBufferingState
  1762 //                          CMPXBufferingState