code: public void seekTo(int msec) throws IllegalStateException {
          Log.d(TAG, "seekTo = " + msec);
  
          if (mediaPlayer != null) {
              // No live streaming
              if (mediaPlayer.getDuration() > -1 && msec <= mediaPlayer.getDuration()) {
                  lastState = currentState;
                  pause();
                  mediaPlayer.seekTo(msec);
  
                  startLoading();
              }
          } else throw new RuntimeException("Media Player is not initialized");
      }
docs: MediaPlayer method (seekTo)
  It calls pause() method before calling MediaPlayer.seekTo()
  
  @param msec the offset in milliseconds from the start to seek to
  @throws IllegalStateException if the internal player engine has not been initialized
  @see <a href="http://developer.android.com/reference/android/media/MediaPlayer.html#seekTo%28%29">seekTo</a>