resetState method

void resetState()

Method to reset the player state.

Implementation

void resetState() {
  source = null;
  isPaused = true;
  currentTime = 0.0;
  currentProgramDateTime = null;
  duration = 0.0;
  volume = 1.0;
  readyState = ReadyState.have_nothing;
  isSeeking = false;
  isEnded = false;
  videoWidth = 0;
  videoHeight = 0;
  buffered = [];
  seekable = [];
  played = [];
  error = null;
  _presenationMode = PresentationMode.INLINE;
}