setSourceUrl method

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

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,
  String? mimeType,
}) async {
  await getPlayer(playerId).setUrl(url);
}