setSource method

Future<void> setSource(
  1. Source source
)

Sets the audio source for this player.

This will delegate to one of the specific methods below depending on the source type.

Implementation

Future<void> setSource(Source source) async {
  // Implementations of setOnPlayer also call `creatingCompleter.future`
  await source.setOnPlayer(this);
}