videoplayback/videohelix/src/mpxvideoplaybackcontroller.cpp
changeset 1 6711b85517b7
parent 0 96612d01cf9f
child 2 dec420019252
equal deleted inserted replaced
0:96612d01cf9f 1:6711b85517b7
    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: 39 %
    18 // Version : %version: 40 %
    19 
    19 
    20 
    20 
    21 //
    21 //
    22 //  INCLUDE FILES
    22 //  INCLUDE FILES
    23 //
    23 //
  1168     if ( aChangeToState != iState->GetState() )
  1168     if ( aChangeToState != iState->GetState() )
  1169     {
  1169     {
  1170         switch ( aChangeToState )
  1170         switch ( aChangeToState )
  1171         {
  1171         {
  1172             case EMPXVideoPlaying:
  1172             case EMPXVideoPlaying:
       
  1173             {
  1173                 iState = iPlayingState;
  1174                 iState = iPlayingState;
       
  1175                 
  1174                 //
  1176                 //
  1175                 //  If clip is audio only, stop the backlight timer and break switch
  1177                 //  If clip is audio only, stop the backlight timer and break switch
  1176                 //  If clip has audio and video, proceed to the next case which will
  1178                 //  If clip has audio and video, proceed to the next case which will
  1177                 //  start the backlight timer if needed
  1179                 //  start the backlight timer if needed
  1178                 //
  1180                 //
  1182                 }
  1184                 }
  1183                 else
  1185                 else
  1184                 {
  1186                 {
  1185                     CancelBackLightTimer();
  1187                     CancelBackLightTimer();
  1186                 }
  1188                 }
  1187                 break;
  1189                 
       
  1190                 break;
       
  1191             }
  1188             case EMPXVideoPaused:
  1192             case EMPXVideoPaused:
       
  1193             {
  1189                 iState = iPausedState;
  1194                 iState = iPausedState;
  1190                 CancelBackLightTimer();
  1195                 CancelBackLightTimer();
  1191                 break;
  1196                 break;
       
  1197             }
  1192             case EMPXVideoInitializing:
  1198             case EMPXVideoInitializing:
       
  1199             {
  1193                 iState = iInitialisingState;
  1200                 iState = iInitialisingState;
  1194                 StartBackLightTimer();
  1201                 StartBackLightTimer();
  1195                 break;
  1202                 break;
       
  1203             }
  1196             case EMPXVideoInitialized:
  1204             case EMPXVideoInitialized:
       
  1205             {
  1197                 iState = iInitialisedState;
  1206                 iState = iInitialisedState;
  1198                 break;
  1207                 break;
       
  1208             }
  1199             case EMPXVideoBuffering:
  1209             case EMPXVideoBuffering:
       
  1210             {
  1200                 iState = iBufferingState;
  1211                 iState = iBufferingState;
  1201                 StartBackLightTimer();
  1212                 StartBackLightTimer();
  1202                 break;
  1213                 break;
       
  1214             }
  1203             case EMPXVideoSeeking:
  1215             case EMPXVideoSeeking:
       
  1216             {
  1204                 iState = iSeekingState;
  1217                 iState = iSeekingState;
  1205                 break;
  1218                 break;
       
  1219             }
  1206             case EMPXVideoStopped:
  1220             case EMPXVideoStopped:
       
  1221             {
  1207                 iState = iStoppedState;
  1222                 iState = iStoppedState;
  1208                 CancelBackLightTimer();
  1223                 CancelBackLightTimer();
  1209                 break;
  1224                 break;
       
  1225             }
  1210             case EMPXVideoNotInitialized:
  1226             case EMPXVideoNotInitialized:
       
  1227             {
  1211                 ResetMemberVariables();
  1228                 ResetMemberVariables();
  1212                 iState = iNotIntialisedState;
  1229                 iState = iNotIntialisedState;
  1213                 CancelBackLightTimer();
  1230                 CancelBackLightTimer();
  1214                 break;
  1231                 break;
       
  1232             }
  1215         }
  1233         }
  1216     }
  1234     }
  1217 }
  1235 }
  1218 
  1236 
  1219 //  ------------------------------------------------------------------------------------------------
  1237 //  ------------------------------------------------------------------------------------------------