equal
deleted
inserted
replaced
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: 45 % |
19 // Version : %version: 47 % |
20 |
20 |
21 |
21 |
22 // |
22 // |
23 // INCLUDE FILES |
23 // INCLUDE FILES |
24 // |
24 // |
1273 { |
1273 { |
1274 MPX_ENTER_EXIT(_L("CMPXInitialisedState::HandleForeground()")); |
1274 MPX_ENTER_EXIT(_L("CMPXInitialisedState::HandleForeground()")); |
1275 CommandHandleForeground(); |
1275 CommandHandleForeground(); |
1276 } |
1276 } |
1277 |
1277 |
|
1278 // ------------------------------------------------------------------------------------------------ |
|
1279 // CMPXInitialisedState::HandlePause() |
|
1280 // ------------------------------------------------------------------------------------------------ |
|
1281 void CMPXInitialisedState::HandlePause() |
|
1282 { |
|
1283 MPX_ENTER_EXIT(_L("CMPXInitialisedState::HandlePause()")); |
|
1284 |
|
1285 iVideoPlaybackCtlr->iPlaybackMode->HandlePause(); |
|
1286 } |
|
1287 |
1278 // ************************************************************************************************* |
1288 // ************************************************************************************************* |
1279 // |
1289 // |
1280 // CMPXPlayingState |
1290 // CMPXPlayingState |
1281 // |
1291 // |
1282 // ************************************************************************************************* |
1292 // ************************************************************************************************* |
1635 MPX_ENTER_EXIT(_L("CMPXPausedState::HandleCustomPlay()")); |
1645 MPX_ENTER_EXIT(_L("CMPXPausedState::HandleCustomPlay()")); |
1636 |
1646 |
1637 if ( iVideoPlaybackCtlr->iPlaybackMode->CanPlayNow() ) |
1647 if ( iVideoPlaybackCtlr->iPlaybackMode->CanPlayNow() ) |
1638 { |
1648 { |
1639 IssuePlayCommand( EMPXVideoPlaying, MMPXPlaybackPluginObserver::EPPlaying, EFalse ); |
1649 IssuePlayCommand( EMPXVideoPlaying, MMPXPlaybackPluginObserver::EPPlaying, EFalse ); |
|
1650 } |
|
1651 else |
|
1652 { |
|
1653 // As the custom play command could not resume the playback. Send a pause event to |
|
1654 // the view though the MPX FW to get the view state in sync playback plugin. |
|
1655 iVideoPlaybackCtlr->iMPXPluginObs->HandlePluginEvent( MMPXPlaybackPluginObserver::EPPaused, |
|
1656 0, |
|
1657 KErrNone ); |
1640 } |
1658 } |
1641 } |
1659 } |
1642 |
1660 |
1643 // ------------------------------------------------------------------------------------------------- |
1661 // ------------------------------------------------------------------------------------------------- |
1644 // CMPXPausedState::HandleUnexpectedError |
1662 // CMPXPausedState::HandleUnexpectedError |