setSourceUrl method

  1. @override
Future<void> setSourceUrl(
  1. String playerId,
  2. String url, {
  3. bool? isLocal,
})
override

Configures the player to read the audio from a URL.

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

Implementation

@override
Future<void> setSourceUrl(String playerId, String url, {bool? isLocal}) {
  return _call(
    'setSourceUrl',
    playerId,
    <String, dynamic>{
      'url': url,
      'isLocal': isLocal,
    },
  );
}