setUrl method

Future<int> setUrl(
  1. String url, {
  2. bool isLocal = false,
  3. bool respectSilence = false,
})

Sets the URL.

Unlike play, the playback will not resume.

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

respectSilence is not implemented on macOS.

Implementation

Future<int> setUrl(
  String url, {
  bool isLocal: false,
  bool respectSilence = false,
}) {
  isLocal = isLocalUrl(url);
  return _invokeMethod(
    'setUrl',
    {'url': url, 'isLocal': isLocal, 'respectSilence': respectSilence},
  );
}