setSourceUrl method

Future<void> setSourceUrl(
  1. String url
)

Sets the URL to a remote link.

The resources will start being fetched or buffered as soon as you call this method.

Implementation

Future<void> setSourceUrl(String url) {
  _source = UrlSource(url);
  return _platform.setSourceUrl(playerId, url, isLocal: false);
}