setAutoPlay method

bool setAutoPlay(
  1. bool autoPlay
)

Set whether the player should play the media automatically.

Implementation

bool setAutoPlay(bool autoPlay) {
  if (!disposed && autoPlay != this.autoPlay.value) {
    this.autoPlay.value = autoPlay;
    return true;
  }
  return false;
}