setUrl method

void setUrl(
  1. String url
)

Implementation

void setUrl(String url) {
  if (currentUrl == url) {
    return; // nothing to do
  }
  currentUrl = url;

  stop();
  recreateNode();
  if (isPlaying) {
    resume();
  }
}