setUrl method
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,
bool respectSilence = false,
bool recordingActive = false,
}) {
return _invokeMethod(
'setUrl',
<String, dynamic>{
'url': url,
'isLocal': isLocal ?? isLocalUrl(url),
'respectSilence': respectSilence,
'recordingActive': recordingActive,
},
);
}