start method

Future<WrappedPlayer> start(
  1. String playerId,
  2. String url
)

Implementation

Future<WrappedPlayer> start(String playerId, String url) async {
  final WrappedPlayer player = getOrCreatePlayer(playerId);

  if (player.currentUrl == url) {
    return player;
  }

  player.start(url);
  return player;
}