unsetAll method

Future<void> unsetAll()

Implementation

Future<void> unsetAll() async {
  if (playerController != null) {
    await playerController?.pause();
    await playerController?.seek(const Duration(milliseconds: 0));
    isPlaying.value = false;
    isComplete.value = false;
    isPlayed.value = false;
    currentPos.value = 0;
    maxDuration.value = 100;
    currentPositionLabel.value = '00:00';
    messageID.value = '';
    urlSource = null;
  }
}