code: public void resume(int position) throws IllegalStateException {
          // allow resume from pause
          switch (subscriberStream.getState()) {
              case PAUSED:
                  subscriberStream.setState(StreamState.PLAYING);
                  sendReset();
                  sendResumeStatus(currentItem.get());
                  if (pullMode) {
                      sendVODSeekCM(position);
                      subscriberStream.onChange(StreamState.RESUMED, currentItem.get(), position);
                      playbackStart = System.currentTimeMillis() - position;
                      long length = currentItem.get().getLength();
                      if (length >= 0 && (position - streamOffset) >= length) {
                          // Resume after end of stream
                          stop();
                      } else {
                          ensurePullAndPushRunning();
                      }
                  } else {
                      subscriberStream.onChange(StreamState.RESUMED, currentItem.get(), position);
                      videoFrameDropper.reset(VideoFrameDropper.SEND_KEYFRAMES_CHECK);
                  }
                  break;
              default:
                  throw new IllegalStateException("Cannot resume from non-paused state");
          }
      }
docs: Resume playback
  
  @param position
  Resumes playback
  @throws IllegalStateException
  If stream is stopped