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) async {
  _source = UrlSource(url);
  await creatingCompleter.future;
  await _completePrepared(
    () => _platform.setSourceUrl(playerId, url, isLocal: false),
  );
}