release method

void release()

Implementation

void release() {
  _cancel();
  player = null;
  stereoPanner = null;

  playerLoadedDataSubscription?.cancel();
  playerLoadedDataSubscription = null;
  playerTimeUpdateSubscription?.cancel();
  playerTimeUpdateSubscription = null;
  playerEndedSubscription?.cancel();
  playerEndedSubscription = null;
  playerSeekedSubscription?.cancel();
  playerSeekedSubscription = null;
  playerPlaySubscription?.cancel();
  playerPlaySubscription = null;
}