public void pause(){
  if (SHOW_LOGS)   Logger.v(TAG,">> pause");
synchronized (mState) {
    if (SHOW_LOGS)     Logger.v(TAG,"pause, mState " + mState);
switch (mState.get()) {
case IDLE:
case INITIALIZED:
case PAUSED:
case PLAYBACK_COMPLETED:
case ERROR:
case PREPARING:
case STOPPED:
case PREPARED:
case END:
      throw new IllegalStateException("pause, called from illegal state " + mState);
case STARTED:
    mMediaPlayer.pause();
  mState.set(State.PAUSED);
break;
}
}
if (SHOW_LOGS) Logger.v(TAG,"<< pause");
}

public void pause ( ) { if ( SHOW_LOGS ) Logger . v ( TAG , ">> pause" ) ; synchronized ( mState ) { if ( SHOW_LOGS ) Logger . v ( TAG , "pause, mState " + mState ) ; switch ( mState . get ( ) ) { case IDLE : case INITIALIZED : case PAUSED : case PLAYBACK_COMPLETED : case ERROR : case PREPARING : case STOPPED : case PREPARED : case END : throw new IllegalStateException ( "pause, called from illegal state " + mState ) ; case STARTED : mMediaPlayer . pause ( ) ; mState . set ( State . PAUSED ) ; break ; } } if ( SHOW_LOGS ) Logger . v ( TAG , "<< pause" ) ; }
pause video . if video is already paused , stopped or ended nothing will happen .
