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) {
  return source.setOnPlayer(this);
}