release method

void release()

Implementation

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

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