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() |