setSourceUrl abstract method

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

Future<void> setSourceUrl(
  String playerId,
  String url, {
  bool? isLocal,
  String? mimeType,
});